Skip to content

Commit

Permalink
refactor: update Dockerfile to remove unnecessary user creation
Browse files Browse the repository at this point in the history
The Dockerfile no longer creates a non-root user, as it is not needed for the application. This simplifies the build process and reduces complexity.
  • Loading branch information
rtuszik committed Aug 23, 2024
1 parent 614e912 commit 8b924f5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,6 @@ ENV PYTHONUNBUFFERED=1

WORKDIR /app

RUN adduser \
--disabled-password \
--gecos "" \
--home "/nonexistent" \
--shell "/sbin/nologin" \
--no-create-home \
--uid "${UID}" \
appuser

COPY requirements.txt .

RUN --mount=type=cache,target=/root/.cache/pip \
Expand Down

0 comments on commit 8b924f5

Please sign in to comment.