fixing useradd command

This commit is contained in:
Andy Pack 2023-09-10 22:16:15 +01:00
parent e2291fb90e
commit 4a43a87afb
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ COPY --from=publish /app ./
ENV DOTNET_EnableDiagnostics=0
ARG DOCKER_USER=selector
RUN addgroup -S $DOCKER_USER && adduser -S $DOCKER_USER -G $DOCKER_USER
RUN useradd -r $DOCKER_USER
USER $DOCKER_USER
ENTRYPOINT ["dotnet", "Selector.CLI.dll"]

View File

@ -32,7 +32,7 @@ COPY --from=publish /app ./
ENV DOTNET_EnableDiagnostics=0
ARG DOCKER_USER=selector
RUN addgroup -S $DOCKER_USER && adduser -S $DOCKER_USER -G $DOCKER_USER
RUN useradd -r $DOCKER_USER
USER $DOCKER_USER
ENTRYPOINT ["dotnet", "Selector.Web.dll"]