Add docker specific files
This commit is contained in:
parent
679414a703
commit
0658d6404f
5 changed files with 70 additions and 1 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue