From 09af12f1d33cd3fb4ff2cfecb514d7654818e1b0 Mon Sep 17 00:00:00 2001 From: Danila Vershinin Date: Sun, 13 Oct 2024 01:32:01 +0700 Subject: [PATCH] Update Dockerfile --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2e4c97c..8d889a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ # Use a lightweight base image with Python and pip installed FROM python:3.9-alpine -RUN addgroup -S lastversion \ - && adduser -S lastversion -G lastversion +# Using "lastversion" user as provided by some linter was a mistake and causes issues with GitHub actions being ran as "runner" +# and lastversion running as a different user and being unable to work with workspace files for extracting to its directory +# USER root # Set the working directory to /app WORKDIR /app @@ -14,7 +15,5 @@ COPY setup.py README.md ./ # Install the application and its dependencies RUN pip install -e . -USER lastversion - # Set the entrypoint to the command that runs your application ENTRYPOINT ["lastversion"]