123456789101112131415161718192021222324252627282930 |
- #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
- FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
- EXPOSE 80
- EXPOSE 443
- EXPOSE 54088
- EXPOSE 2222
- WORKDIR /app
- RUN apt-get update \
- && apt-get install -y --no-install-recommends dialog \
- && apt-get install -y --no-install-recommends openssh-server \
- && apt-get install -y tcpdump\
- && mkdir -p /run/sshd \
- && echo "root:Docker!" | chpasswd
-
- COPY sshd_config /etc/ssh/sshd_config
- RUN apt-get update \
- && apt-get install -y cron \
- && apt-get install -y vim \
- && apt-get install -y zip
- FROM base AS final
- WORKDIR /app
- COPY ./app/publish/ /app/
- COPY entrypoint.sh /app/entrypoint.sh
- COPY ssha /app/ssha
- RUN chmod +x /app/entrypoint.sh
- CMD ["/app/entrypoint.sh"]
|