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 a8485fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ 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
RUN find / -name appsettings.Development.json -exec rm -f {} \;
ENTRYPOINT ["./MaxPower", ""]

0 comments on commit a8485fc

Please sign in to comment.