create Docker resources

This commit is contained in:
fanyx 2020-11-14 14:26:48 +01:00
parent 3858ed171c
commit a1b1787612
2 changed files with 11 additions and 2 deletions

9
.dockerignore Normal file
View File

@ -0,0 +1,9 @@
# common ignores
Dockerfile
.drone.yml
.git*
# repo
README.md
Features.md
venv

View File

@ -1,11 +1,11 @@
FROM python:3.9-alpine FROM python:3.9-alpine
ADD . /app/ COPY . /app/
WORKDIR /app WORKDIR /app
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
USER 1000 USER 1000:1000
CMD ["python", "main.py"] CMD ["python", "main.py"]