Skip to content

Commit

Permalink
Replace Dockerfile with a sample one from Pluralsight
Browse files Browse the repository at this point in the history
  • Loading branch information
nicul committed May 8, 2020
1 parent 902ed3a commit 6813131
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM python:3.8
FROM python:3.7-alpine

WORKDIR /src/app
WORKDIR /src/app/

COPY requirements.txt /src/app
RUN pip install -r requirements.txt
COPY ./requirements.txt .

COPY . /src/app
RUN ["pip", "install", "-r", "./requirements.txt"]

CMD ["python", "/src/app/app.py"]
COPY . .

RUN addgroup -S projects && adduser -S -H projects -G projects
RUN chown -R projects:projects /src/app
USER projects

0 comments on commit 6813131

Please sign in to comment.