Add docker specific files

This commit is contained in:
Sonny 2019-08-10 21:12:59 +02:00
parent 679414a703
commit 0658d6404f
5 changed files with 70 additions and 1 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM python:3.7-buster
RUN mkdir /app
WORKDIR /app
# Use a seperate layer for the project requirements
COPY ./requirements /app/requirements
RUN pip install -r requirements/dev.txt
COPY . /app/
# Set the default shell & add a home dir
RUN useradd -ms /bin/bash newsreader
USER newsreader