From fedc0c544a4245edb20f53285bdf270982a42658 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 4 Sep 2024 18:48:51 +0200 Subject: [PATCH] =?UTF-8?q?Dockerfile=20hinzugef=C3=BCg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FWLAZ_Web/Dockerfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/FWLAZ_Web/Dockerfile b/FWLAZ_Web/Dockerfile index cc5721a..4acd648 100644 --- a/FWLAZ_Web/Dockerfile +++ b/FWLAZ_Web/Dockerfile @@ -23,8 +23,20 @@ FROM build AS publish ARG BUILD_CONFIGURATION=Release RUN dotnet publish "./FWLAZ_Web.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false +# Set Write Permissions to database +# FROM docker.io/library/alpine:3.20 +# RUN chmod 755 /Data/quiz.db + + # Diese Stufe wird in der Produktion oder bei Ausführung von VS im regulären Modus verwendet (Standard, wenn die Debugkonfiguration nicht verwendet wird). FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "FWLAZ_Web.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "FWLAZ_Web.dll"] + +# Invalid +#ARG USER_ID +#ARG GROUP_ID +#RUN addgroup --gid $GROUP_ID user +#RUN adduser --disabled-password --gecos '' --uid $USER_ID --gid $GROUP_ID user +#USER user \ No newline at end of file