1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-12-23 10:23:46 +00:00
Altessimo/Dockerfile

18 lines
460 B
Docker
Raw Normal View History

2021-06-08 14:20:26 +00:00
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 \
2021-06-08 14:23:19 +00:00
&& apk del build-deps
2021-06-08 14:20:26 +00:00
ADD . /app
WORKDIR /app
EXPOSE 8000
ENV DJANGO_SETTINGS_MODULE=altessimo.production
CMD ["gunicorn", "--bind", ":8000", "altessimo.wsgi"]