-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
27 lines (22 loc) · 918 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
FROM ubuntu:22.04
ARG VERSION
ENV TZ=UTC
RUN set -eux; \
# install python
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get full-upgrade -y; \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3.10 \
python3-pip \
tzdata; \
DEBIAN_FRONTEND=noninteractive apt-get remove --purge --auto-remove -y; \
rm -rf /var/lib/apt/lists/*; \
# install mlflow
pip install --no-cache mlflow==$VERSION
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt --no-cache
# to stay consistent with upstream image we separate the dpkg-query to separate layer
RUN mkdir -p /usr/share/rocks; \
(echo "# os-release" && cat /etc/os-release && echo "# dpkg-query" && dpkg-query -f '${db:Status-Abbrev},${binary:Package},${Version},${source:Package},${Source:Version}\n' -W) > /usr/share/rocks/dpkg.query
EXPOSE 5000
CMD ["python3"]