Skip to content

Commit 7fa6d91

Browse files
authored
Use the official Python image as base image (#174)
This gives more precise control over the Python version.
1 parent 8dd6184 commit 7fa6d91

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
FROM debian:bullseye
2-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
3-
python-is-python3 \
4-
python3 \
5-
python3-pip \
6-
&& rm -rf /var/lib/apt/lists/*
1+
FROM python:3.9
2+
73
COPY . /ml-compiler-opt
8-
RUN python3 -m pip install -r /ml-compiler-opt/requirements.txt
4+
RUN pip install --no-cache-dir -r /ml-compiler-opt/requirements.txt
5+
6+
WORKDIR /ml-compiler-opt/compiler_opt/tools
97
ENV PYTHONPATH=/ml-compiler-opt
8+
109
VOLUME /external

0 commit comments

Comments
 (0)