Skip to content

Commit

Permalink
chore: Update Dockerfiles to fix workspace directory owner
Browse files Browse the repository at this point in the history
  • Loading branch information
cbluebird committed Sep 10, 2024
1 parent 577f2be commit d8bfae7
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Language/java/openjdk17/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
echo 'export PATH=$PATH:$JAVA_HOME/bin' >> /home/sealos/.bashrc && \
echo 'export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64' >> /home/sealos/.bashrc
echo 'export JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64' >> /home/sealos/.bashrc && \
chown -R sealos:sealos /home/sealos/workspace && \
chmod -R u+rw /home/sealos/workspace

ENV JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64
ENV PATH=$PATH:$JAVA_HOME/bin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ RUN apt-get update && \
apt-get install -y nodejs && \
npm install -g typescript yarn pnpm && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
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 @@ -8,6 +8,8 @@ RUN apt-get update && \
apt-get install -y nodejs && \
npm install -g typescript yarn pnpm && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
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 @@ -8,6 +8,8 @@ RUN apt-get update && \
apt-get install -y nodejs && \
npm install -g typescript yarn pnpm && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
rm -rf /var/lib/apt/lists/* && \
chown -R sealos:sealos /home/sealos/workspace && \
chmod -R u+rw /home/sealos/workspace

RUN mkdir /root/.sealos

0 comments on commit d8bfae7

Please sign in to comment.