From b523e9f36e08ac227c8c67084ef60562aa72978c Mon Sep 17 00:00:00 2001 From: cbluebird Date: Tue, 10 Sep 2024 10:30:00 +0800 Subject: [PATCH] bugfix: Update Python Dockerfiles to include workspace directory --- Language/python/python3.10/Dockerfile | 3 ++- Language/python/python3.11/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Language/python/python3.10/Dockerfile b/Language/python/python3.10/Dockerfile index 6df7434c..e80178c8 100644 --- a/Language/python/python3.10/Dockerfile +++ b/Language/python/python3.10/Dockerfile @@ -5,6 +5,7 @@ COPY /Language/python/workspace /home/sealos/workspace RUN apt-get update && \ apt-get install -y python3.10 python3-pip python3-venv && \ apt-get clean && \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* && \ + python3 -m venv /home/sealos/workspace RUN mkdir /root/.sealos \ No newline at end of file diff --git a/Language/python/python3.11/Dockerfile b/Language/python/python3.11/Dockerfile index 9b253aca..a6c83db9 100644 --- a/Language/python/python3.11/Dockerfile +++ b/Language/python/python3.11/Dockerfile @@ -5,6 +5,7 @@ COPY /Language/python/workspace /home/sealos/workspace RUN apt-get update && \ apt-get install -y python3.11 python3-pip python3-venv && \ apt-get clean && \ - rm -rf /var/lib/apt/lists/* + rm -rf /var/lib/apt/lists/* && \ + python3 -m venv /home/sealos/workspace RUN mkdir /root/.sealos \ No newline at end of file