Skip to content

Commit

Permalink
Update Python Dockerfiles to use project directory instead of workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
cbluebird committed Sep 11, 2024
1 parent 924b365 commit 6de245c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Language/python/3.10/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM ghcr.io/labring-actions/devbox/debian-ssh:d8f335

COPY /Language/python/workspace /home/sealos/workspace
COPY /Language/python/project /home/sealos/project

RUN apt-get update && \
apt-get install -y python3.10 python3-pip python3-venv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
python3 -m venv /home/sealos/workspace && \
chown -R sealos:sealos /home/sealos/workspace && \
chmod -R u+rw /home/sealos/workspace
python3 -m venv /home/sealos/project && \
chown -R sealos:sealos /home/sealos/project && \
chmod -R u+rw /home/sealos/project

RUN mkdir /root/.sealos
8 changes: 4 additions & 4 deletions Language/python/3.11/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM ghcr.io/labring-actions/devbox/debian-ssh:d8f335

COPY /Language/python/workspace /home/sealos/workspace
COPY /Language/python/project /home/sealos/project

RUN apt-get update && \
apt-get install -y python3.11 python3-pip python3-venv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
python3 -m venv /home/sealos/workspace && \
chown -R sealos:sealos /home/sealos/workspace && \
chmod -R u+rw /home/sealos/workspace
python3 -m venv /home/sealos/project && \
chown -R sealos:sealos /home/sealos/project && \
chmod -R u+rw /home/sealos/project

RUN mkdir /root/.sealos
8 changes: 4 additions & 4 deletions Language/python/3.12/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM ghcr.io/labring-actions/devbox/debian-ssh:d8f335

COPY /Language/python/workspace /home/sealos/workspace
COPY /Language/python/project /home/sealos/project

RUN apt-get update && \
apt-get install -y python3 python3-pip python3-venv && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
python3 -m venv /home/sealos/workspace && \
chown -R sealos:sealos /home/sealos/workspace && \
chmod -R u+rw /home/sealos/workspace
python3 -m venv /home/sealos/project && \
chown -R sealos:sealos /home/sealos/project && \
chmod -R u+rw /home/sealos/project

RUN mkdir /root/.sealos
File renamed without changes.

0 comments on commit 6de245c

Please sign in to comment.