1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-11-21 21:47:33 +00:00

Add initial Dockerfile

This commit is contained in:
Damillora 2021-06-08 21:20:26 +07:00
parent c086f10b3c
commit 661d57ab56
2 changed files with 20 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM python:alpine
ADD requirements.txt /app/requirements.txt
RUN apk update \
&& apk add --virtual build-deps gcc python3-dev musl-dev \
&& apk add --no-cache mariadb-dev \
&& pip install --no-cache-dir -r /app/requirements.txt \
&& apk add --no-cache mariadb-connector-c \
&& apk del .build-deps
ADD . /app
WORKDIR /app
EXPOSE 8000
ENV DJANGO_SETTINGS_MODULE=altessimo.production
CMD ["gunicorn", "--bind", ":8000", "altessimo.wsgi"]

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
Django>=3.0,<4.0
mysqlclient
gunicorn