1
0
Fork 0
mirror of https://github.com/shouptech/humulus.git synced 2026-02-03 12:39:42 +00:00
humulus/Dockerfile

25 lines
549 B
Docker

FROM python:3.7-slim
RUN apt-get update && \
apt-get install -y gcc && \
pip3 install uwsgi && \
apt-get remove --purge -y gcc && \
apt-get autoremove -y
EXPOSE 8000/tcp
ENV HUMULUS_SETTINGS=/app/instance/settings.py
ENV UWSGI_PROCESSES=4
ENV UID=9000
ENV GID=9000
ADD . /app/
WORKDIR /app
RUN pip3 install --no-cache-dir .
CMD uwsgi --master \
--uid $UID \
--gid $GID \
--plugins python3 \
--http-socket :8000 \
-p ${UWSGI_PROCESSES} \
--module 'humulus:create_app()'