1
0
mirror of https://github.com/Damillora/Altessimo synced 2025-02-22 09:13:39 +00:00
Altessimo/Dockerfile

19 lines
476 B
Docker
Raw Normal View History

2021-06-08 21:20:26 +07:00
FROM python:alpine
ADD requirements.txt /app/requirements.txt
RUN apk update \
&& apk add --virtual build-deps gcc python3-dev musl-dev \
2021-07-10 01:36:21 +07:00
&& apk add --no-cache mariadb-dev jpeg-dev zlib-dev libpng-dev \
2021-06-08 21:20:26 +07:00
&& pip install --no-cache-dir -r /app/requirements.txt \
2021-06-08 21:23:19 +07:00
&& apk del build-deps
2021-06-08 21:20:26 +07:00
ADD . /app
WORKDIR /app
2021-07-10 01:36:21 +07:00
RUN python manage.py collectstatic
2021-06-08 21:20:26 +07:00
EXPOSE 8000
ENV DJANGO_SETTINGS_MODULE=altessimo.production
CMD ["gunicorn", "--bind", ":8000", "altessimo.wsgi"]