Update OCPP.Core.Server/Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-31 04:16:13 +00:00
parent 187822eed3
commit 7025a2d0d7

View File

@@ -6,11 +6,11 @@ RUN dotnet publish OCPP.Core.Server/OCPP.Core.Server.csproj -o /publish
#RUN dotnet build #RUN dotnet build
#RUN dotnet publish -o /publish --configuration Release ; #RUN dotnet publish -o /publish --configuration Release ;
# Publish Stage # Publish Stage
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get install -y #RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get install -y
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libkrb5-dev #RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libkrb5-dev
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y rsyslog-gssapi #RUN DEBIAN_FRONTEND=noninteractive apt-get install -y rsyslog-gssapi
#RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libkrb5-3 --reinstall #RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libkrb5-3 --reinstall
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libgssapi-krb5-2 #RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libgssapi-krb5-2
#RUN DEBIAN_FRONTEND=noninteractive rm -rf /var/lib/apt/lists/* #RUN DEBIAN_FRONTEND=noninteractive rm -rf /var/lib/apt/lists/*
#RUN ls -l /usr/lib/libgssapi_krb5.so.2 #RUN ls -l /usr/lib/libgssapi_krb5.so.2
#RUN ls -l /usr/lib64/libgssapi_krb5.so.2 #RUN ls -l /usr/lib64/libgssapi_krb5.so.2
@@ -21,5 +21,7 @@ RUN ldconfig
FROM registry.71dev.com/dotnetaspnet:8.0 FROM registry.71dev.com/dotnetaspnet:8.0
WORKDIR /app WORKDIR /app
COPY --from=build-env /publish . COPY --from=build-env /publish .
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get install -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libgssapi-krb5-2
ENV ASPNETCORE_URLS http://*:8081 ENV ASPNETCORE_URLS http://*:8081
ENTRYPOINT ["dotnet", "OCPP.Core.Server.dll"] ENTRYPOINT ["dotnet", "OCPP.Core.Server.dll"]