Files
OCPP.Core/OCPP.Core.Server/Dockerfile
nutchayut a43f753b6e
All checks were successful
continuous-integration/drone/push Build is passing
bug fixed
2024-05-31 01:36:47 +07:00

17 lines
680 B
Docker

FROM registry.71dev.com/dotnetsdk:8.0 as build-env
WORKDIR /source
COPY . .
RUN dotnet publish OCPP.Core.Server/OCPP.Core.Server.csproj -o /publish
#RUN dotnet build
#RUN dotnet publish -o /publish --configuration Release ;
# Publish Stage
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get install -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y rsyslog-gssapi
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y libkrb5-3
RUN DEBIAN_FRONTEND=noninteractive rm -rf /var/lib/apt/lists/*
FROM registry.71dev.com/dotnetaspnet:8.0
WORKDIR /app
COPY --from=build-env /publish .
ENV ASPNETCORE_URLS http://*:8081
ENTRYPOINT ["dotnet", "OCPP.Core.Server.dll"]