Dockerfile hinzugefüg

This commit is contained in:
BuildTools 2024-09-04 18:48:51 +02:00
parent 99b4be1309
commit fedc0c544a

View File

@ -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"]
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