ihatemoney/Dockerfile
Benjamin Bouvier 9a889f61c7 [docker] Download IHM from Pypy or reference git repo;
This creates two modes to run the Docker image:
- either in non-NIGHTLY mode, the latest version will be installed from
pypy.
- or in Nightly mode, it will clone the repository and update it every
time the instance is restarted.

It also updates Python to 3.7, for additional goodness.
2019-07-31 13:02:03 +02:00

28 lines
810 B
Docker

FROM python:3.7-alpine
ENV NIGHTLY="" \
DEBUG="False" \
SQLALCHEMY_DATABASE_URI="sqlite:////database/ihatemoney.db" \
SQLALCHEMY_TRACK_MODIFICATIONS="False" \
SECRET_KEY="tralala" \
MAIL_DEFAULT_SENDER="('Budget manager', 'budget@notmyidea.org')" \
MAIL_SERVER="localhost" \
MAIL_PORT=25 \
MAIL_USE_TLS=False \
MAIL_USE_SSL=False \
MAIL_USERNAME= \
MAIL_PASSWORD= \
ACTIVATE_DEMO_PROJECT="True" \
ADMIN_PASSWORD="" \
ALLOW_PUBLIC_PROJECT_CREATION="True" \
ACTIVATE_ADMIN_DASHBOARD="False"
RUN apk update && apk add git gcc libc-dev libffi-dev openssl-dev wget &&\
mkdir -p /etc/ihatemoney &&\
pip install --no-cache-dir gunicorn pymysql;
COPY ./conf/entrypoint.sh /entrypoint.sh
VOLUME /database
EXPOSE 8000
ENTRYPOINT ["/entrypoint.sh"]