forked from spiral-project/ihatemoney
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (24 loc) · 810 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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', '[email protected]')" \
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"]