forked from zsxsoft/fava-management
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
18 lines (14 loc) · 615 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM tiangolo/meinheld-gunicorn:python3.7-alpine3.8
ENV BEANCOUNT_FILE /bean/main.bean
ENV APP_MODULE management.wsgi
COPY requirements.txt /app
RUN rm main.py && \
apk add --update --no-cache --virtual .build-deps gcc libc-dev libxml2-dev python-dev libxml2 libxslt-dev && \
pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt && \
apk del .build-deps
ENV USERNAME admin
ENV PASSWORD 123456
COPY . /app
COPY docker/prestart.sh /app/prestart.sh
RUN yes | python3 manage.py collectstatic && \
sed -i 's/DEBUG = True/DEBUG = False/g' management/settings.py