Skip to content

Commit d8b67a6

Browse files
committed
feat: Update Dockerfile to add project files and fix permissions
1 parent 6c74751 commit d8b67a6

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

OS/debian-ssh/Dockerfile renamed to OS/debian-ssh/12.6/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ RUN chmod +x /usr/start/startup.sh && \
2020
echo 'sealos ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
2121
rm -rf /tmp/*
2222

23+
USER sealos
24+
COPY /OS/debian-ssh/project /home/sealos/project
25+
RUN sudo chown -R sealos:sealos /home/sealos/project && \
26+
sudo chmod -R 777 /home/sealos/project
27+
28+
USER root
2329
ENTRYPOINT ["sudo", "-E", "/usr/start/startup.sh"]
2430

31+
WORKDIR /home/sealos/project
2532
EXPOSE 22
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./hello

OS/debian-ssh/project/hello.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
echo "Hello, World!"

0 commit comments

Comments
 (0)