We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents af68145 + bb996f1 commit 7eb46efCopy full SHA for 7eb46ef
1 file changed
Dockerfile.py
@@ -1,9 +1,8 @@
1
-FROM jupyter/base-notebook
+FROM python:3.10-slim
2
3
-USER root
4
-RUN apt-get update && apt-get install -y build-essential g++ libgl1-mesa-glx libx11-6
5
-COPY requirements.txt .
6
-RUN pip install -r requirements.txt
7
-COPY . /src
8
WORKDIR /src
+RUN apt-get update && apt-get install -y build-essential g++ libgl1-mesa-glx libx11-6 && rm -rf /var/lib/apt/lists/*
+COPY requirements.txt .
+RUN pip install --no-cache-dir -r requirements.txt
+COPY . .
9
0 commit comments