Add Dockerfile

This commit is contained in:
Mary 2021-02-28 14:42:05 +01:00
parent 4450573013
commit 51a4bf948b
2 changed files with 11 additions and 0 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
config.py

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM python:alpine
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev cargo && pip install --no-cache-dir -r requirements.txt && apk del gcc musl-dev python3-dev libffi-dev openssl-dev cargo
COPY . .
CMD [ "python", "./Robocop.py" ]