-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
31 lines (24 loc) · 866 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
29
30
31
From alpine:3.7
LABEL maintainer="LucyB"
# Application folder
ENV APP_DIR /app
# Install dependencies
RUN apk add --update --no-cache python3-dev supervisor g++ postgresql-dev musl-dev && \
ln -s /usr/include/locale.h /usr/include/xlocale.h && \
pip3 install --upgrade pip && \
pip3 install gunicorn && \
# Work around for bug in current version of numpy
pip3 install numpy==1.14.0 && \
mkdir -p ${APP_DIR}/web && \
mkdir -p ${APP_DIR}/conf && \
mkdir -p ${APP_DIR}/logs && \
rm -rf /var/cache/apk/*
# Install flask/Dash application dependancies
COPY ./app/requirements.txt ${APP_DIR}/
RUN pip3 --no-cache-dir install -r ${APP_DIR}/requirements.txt
# Copy config
COPY ./app/conf/supervisor_dash.ini /etc/supervisord.conf
# copy app files
COPY ./app ${APP_DIR}
EXPOSE 5000
CMD ["supervisord", "-c", "/etc/supervisord.conf"]