Dockerfile_dev 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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/sdk:7.0 AS final
  3. EXPOSE 80
  4. EXPOSE 443
  5. EXPOSE 54088
  6. EXPOSE 54089
  7. EXPOSE 2222
  8. #RUN sed -i 's/TLSv1.2/TLSv1/g' /etc/ssl/openssl.cnf
  9. #RUN sed -i 's/DEFAULT@SECLEVEL=2/DEFAULT@SECLEVEL=1/g' /etc/ssl/openssl.cnf
  10. RUN apt-get update \
  11. && apt-get install -y --no-install-recommends dialog \
  12. && apt-get install -y --no-install-recommends openssh-server \
  13. && mkdir -p /run/sshd \
  14. && echo "root:Docker!" | chpasswd
  15. COPY sshd_config /etc/ssh/sshd_config
  16. # Install dotnet debug tools
  17. RUN dotnet tool install --tool-path /tools dotnet-trace \
  18. && dotnet tool install --tool-path /tools dotnet-counters \
  19. && dotnet tool install --tool-path /tools dotnet-dump \
  20. && dotnet tool install --tool-path /tools dotnet-gcdump
  21. #RUN apt update
  22. #RUN apt install -y linux-perf
  23. #RUN echo 0 > /proc/sys/kernel/kptr_restrict
  24. WORKDIR /src
  25. COPY . .
  26. #RUN export DOTNET_PerfMapEnabled=1
  27. RUN dotnet build ./EVCB_OCPP.WSServer/EVCB_OCPP.WSServer.csproj
  28. CMD dotnet run --project ./EVCB_OCPP.WSServer/EVCB_OCPP.WSServer.csproj