Skip to content
Snippets Groups Projects
Dockerfile 509 B
FROM python:3.9 AS runtime

ADD requirements.txt /tmp/requirements.txt

RUN pip install -r /tmp/requirements.txt

WORKDIR /app
ADD netguru /app/netguru
ADD manage.py /app/manage.py
ADD shares /app/shares
ADD templates /app/templates
ADD counting /app/counting
ADD agent /app/agent
ADD test.sh /app/test.sh
RUN python manage.py collectstatic && \
    chmod ugo+x /app/test.sh && \
    mkdir -p /data

VOLUME /data

CMD ["gunicorn", "-w", "1", "--threads", "4", "-b", "0.0.0.0:80", "netguru.wsgi:application"]