Dockerfile_React 811 B

123456789101112131415161718192021222324252627282930
  1. #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
  2. FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base
  3. EXPOSE 80
  4. EXPOSE 443
  5. EXPOSE 54088
  6. EXPOSE 2222
  7. WORKDIR /app
  8. RUN apt-get update \
  9. && apt-get install -y --no-install-recommends dialog \
  10. && apt-get install -y --no-install-recommends openssh-server \
  11. && apt-get install -y tcpdump\
  12. && mkdir -p /run/sshd \
  13. && echo "root:Docker!" | chpasswd
  14. COPY sshd_config /etc/ssh/sshd_config
  15. RUN apt-get update \
  16. && apt-get install -y cron \
  17. && apt-get install -y vim \
  18. && apt-get install -y zip
  19. FROM base AS final
  20. WORKDIR /app
  21. COPY ./app/publish/ /app/
  22. COPY entrypoint.sh /app/entrypoint.sh
  23. COPY ssha /app/ssha
  24. RUN chmod +x /app/entrypoint.sh
  25. CMD ["/app/entrypoint.sh"]