Dockerfile2 736 B

123456789101112131415161718
  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. RUN sed -i 's/TLSv1.2/TLSv1/g' /etc/ssl/openssl.cnf
  7. RUN sed -i 's/DEFAULT@SECLEVEL=2/DEFAULT@SECLEVEL=1/g' /etc/ssl/openssl.cnf
  8. RUN dotnet tool install --tool-path /bin dotnet-trace
  9. RUN dotnet tool install --tool-path /bin dotnet-counters
  10. RUN apt update
  11. RUN apt install -y linux-perf
  12. RUN echo 0 > /proc/sys/kernel/kptr_restrict
  13. WORKDIR /src
  14. COPY . .
  15. RUN export DOTNET_PerfMapEnabled=1
  16. RUN dotnet build ./EVCB_OCPP.WSServer/EVCB_OCPP.WSServer.csproj
  17. CMD dotnet run --project ./EVCB_OCPP.WSServer/EVCB_OCPP.WSServer.csproj