add Dockerfile, .dockerignore, requirements.txt

This commit is contained in:
Lexi / Zoe 2019-09-24 02:02:51 +02:00
parent a4ef7a72e8
commit 024940243d
Signed by: binaryDiv
GPG key ID: F8D4956E224DA232
4 changed files with 46 additions and 0 deletions

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
FROM alpine:3.7
EXPOSE 8042
WORKDIR /usr/src/app
RUN apk add --no-cache \
python3 \
py3-gunicorn
COPY requirements.txt .
RUN pip3 install --upgrade pip && \
pip3 install --no-cache-dir -r requirements.txt
COPY . .
CMD ["gunicorn", "pluralityspace.wsgi:application", \
"--bind", "0.0.0.0:8042"]