Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dvershinin committed Oct 12, 2024
1 parent 473e899 commit 09af12f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"]

0 comments on commit 09af12f

Please sign in to comment.