Skip to content

Commit

Permalink
Merge pull request #34 from sbkg0002/master
Browse files Browse the repository at this point in the history
Use alpine based python image to eliminate vulnerabilities
  • Loading branch information
monotek authored Feb 4, 2020
2 parents 6a7faf8 + a0c696e commit 632e7be
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM python:3.7-slim
#create app directory
FROM python:3.7-alpine
ENV PYTHONUNBUFFERED=1
WORKDIR /app

COPY requirements.txt .
RUN pip install -r requirements.txt
COPY sidecar/* ./
ENV PYTHONUNBUFFERED=1
RUN apk add --no-cache gcc && \
pip install -r requirements.txt && \
apk del gcc

COPY sidecar/* ./

#run as non-privileged user
USER nobody
Expand Down
Empty file modified sidecar/helpers.py
100644 → 100755
Empty file.
Empty file modified sidecar/resources.py
100644 → 100755
Empty file.
Empty file modified sidecar/sidecar.py
100644 → 100755
Empty file.

0 comments on commit 632e7be

Please sign in to comment.