Skip to content

Commit

Permalink
Drop non-root user for now
Browse files Browse the repository at this point in the history
  • Loading branch information
KashifSaadat committed Apr 22, 2022
1 parent 2a681e3 commit d4ca86b
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ RUN apk add --no-cache \
COPY requirements.txt ./
RUN pip install -r requirements.txt

# Create a non-root user and set file permissions
RUN addgroup -S app \
&& adduser -S -g app -u 1000 app \
&& chown -R app:app $HOME

# Run as the non-root user
USER 1000

# Copy entrypoint
COPY entrypoint.sh /usr/local/bin/entrypoint.sh

Expand Down

0 comments on commit d4ca86b

Please sign in to comment.