Skip to content

Commit

Permalink
Update Docker base image, Python 3.9.9 and Alpine to fix vulnerabilit…
Browse files Browse the repository at this point in the history
…ies in busybox
  • Loading branch information
dignajar committed Nov 28, 2021
1 parent 273e61f commit 753e1ea
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.9.7-alpine3.14
FROM python:3.9.9-alpine3.14

ENV PYTHONUNBUFFERED=0
ENV PYTHONUNBUFFERED=1

COPY files/requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt --no-cache-dir
Expand All @@ -13,9 +13,8 @@ ENV GID 10001
ENV HOME /home/$USER
RUN addgroup -g $GID -S $GROUP && adduser -u $UID -S $USER -G $GROUP

# Python code
COPY files/* $HOME/
RUN chown -R $USER:$GROUP $HOME
# Copy app
COPY --chown=$UID:$GID ./files/ $HOME/

USER $UID:$GID
WORKDIR $HOME
Expand Down

0 comments on commit 753e1ea

Please sign in to comment.