We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba1a79e commit bb996f1Copy full SHA for bb996f1
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