From b6b45186b862e4ec8a870040ec701a6e89c6e6fe Mon Sep 17 00:00:00 2001 From: awaescher Date: Tue, 14 May 2024 22:31:07 +0200 Subject: [PATCH] Improve Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2aacf93..29e12bb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,12 +16,13 @@ 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 ls -al RUN rm appsettings.Development.json ENTRYPOINT ["./MaxPower", ""] \ No newline at end of file