14 lines
419 B
Docker
14 lines
419 B
Docker
FROM alpine
|
|
|
|
VOLUME /app/instance
|
|
WORKDIR /app
|
|
|
|
RUN ln -s /app/cleanup.py /etc/periodic/daily/
|
|
RUN apk add s6 python3 libmagic py3-alembic py3-jinja2 py3-flask py3-pip py3-wheel py3-numpy py3-sqlalchemy py3-requests py3-greenlet uwsgi uwsgi-python3
|
|
RUN mv /etc/crontabs/root /etc/crontabs/uwsgi
|
|
COPY --chown=uwsgi 0x0 /app
|
|
RUN pip install -r requirements.txt
|
|
COPY services /services
|
|
|
|
CMD ["/bin/s6-svscan","/services"]
|