This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -0,0 +1,12 @@
|
||||
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
|
||||
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"]
|
||||
Reference in New Issue
Block a user