Skip to content

Commit

Permalink
Improve Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
awaescher committed May 14, 2024
1 parent 8193540 commit f04bdcd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ WORKDIR /
COPY ./MaxPower /app/MaxPower/
COPY ./MaxTalkSharp /app/MaxTalkSharp/
WORKDIR /app/MaxPower/
RUN dotnet publish -c Release -r linux-arm64 -o out -p:PublishSingleFile=true --self-contained true /p:AssemblyVersion=$SEMVERSION /p:Version=$SEMVERSION
RUN dotnet publish -c Release -r linux-arm64 -o out -p:PublishSingleFile=true --self-contained true /p:AssemblyVersion=0.1.0 /p:Version=0.1.0

# RUNTIME CONTAINER
FROM mcr.microsoft.com/dotnet/aspnet:8.0.2-jammy-arm64v8 AS runtime
EXPOSE 80
WORKDIR /app
COPY --from=build /app/MaxPower/out ./
RUN rm appsettings.Development.json
ENTRYPOINT ["./MaxPower", ""]

0 comments on commit f04bdcd

Please sign in to comment.