Skip to content

Commit

Permalink
chore: Update Dockerfiles to fix workspace directory permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
cbluebird committed Sep 10, 2024
1 parent 2a729bd commit 48704ee
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ 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
python3 -m venv /home/sealos/workspace && \
chown -R sealos:sealos /home/sealos/workspace && \
chmod -R u+rw /home/sealos/workspace

RUN mkdir /root/.sealos
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ 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
python3 -m venv /home/sealos/workspace && \
chown -R sealos:sealos /home/sealos/workspace && \
chmod -R u+rw /home/sealos/workspace

RUN mkdir /root/.sealos
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ 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
python3 -m venv /home/sealos/workspace && \
chown -R sealos:sealos /home/sealos/workspace && \
chmod -R u+rw /home/sealos/workspace

RUN mkdir /root/.sealos
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
echo 'export PATH=/home/sealos/.cargo/bin:$PATH' >> $HOME/.bashrc && \
echo 'source /home/sealos/.cargo/env' >> $HOME/.bashrc
echo 'source /home/sealos/.cargo/env' >> $HOME/.bashrc && \
chown -R sealos:sealos /home/sealos/workspace && \
chmod -R u+rw /home/sealos/workspace

0 comments on commit 48704ee

Please sign in to comment.