forked from dmeyer3691/mlflow-easyauth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (20 loc) · 914 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
FROM debian:buster-slim
COPY ./requirements.txt ./requirements.txt
# pandas installed from Debian repos to avoid building C extensions
RUN set -x \
&& apt-get update \
&& apt-get install --no-install-recommends --no-install-suggests -y \
python3 python3-pip python3-setuptools python3-pandas supervisor gettext-base nginx apache2-utils python3-psycopg2 \
&& pip3 install wheel \
&& pip3 install -r requirements.txt \
&& apt-get remove --purge --auto-remove -y ca-certificates && rm -rf /var/lib/apt/lists/*
# WWW (nginx)
RUN addgroup -gid 1000 www \
&& adduser -uid 1000 -H -D -s /bin/sh -G www www
COPY nginx.conf.template /app/nginx.conf.template
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY ./entry-point.sh /app/entry-point.sh
COPY ./webserver.sh /app/webserver.sh
COPY ./mlflow.sh /app/mlflow.sh
CMD ["/bin/bash", "/app/entry-point.sh"]
EXPOSE 6000