enemy7 commited on
Commit
e0b6c67
·
1 Parent(s): abd129d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -10
Dockerfile CHANGED
@@ -1,18 +1,33 @@
1
- # Use the official Nextcloud image as the base image
2
- FROM ubuntu:latest
 
 
 
 
 
 
 
 
 
 
3
 
4
- # Install additional PHP modules if required (uncomment and add more if needed)
5
- RUN apt-get update && apt-get upgrade -y
6
- RUN apt-get install docker-compose -y
7
 
8
- EXPOSE 7860
 
 
 
 
 
 
9
 
10
- COPY . /app
11
 
12
- RUN cd /app
13
 
 
14
 
15
- # RUN export PATH=$PATH:$HOME/.local/bin
16
 
 
17
 
18
- CMD ["docker-compose up"]
 
1
+ # # Use the official Nextcloud image as the base image
2
+ # FROM ubuntu:latest
3
+
4
+ # # Install additional PHP modules if required (uncomment and add more if needed)
5
+ # RUN apt-get update && apt-get upgrade -y
6
+ # RUN apt-get install docker-compose -y
7
+
8
+ # EXPOSE 7860
9
+
10
+ # COPY . /app
11
+
12
+ # RUN cd /app
13
 
 
 
 
14
 
15
+ # # RUN export PATH=$PATH:$HOME/.local/bin
16
+
17
+
18
+ # CMD ["docker-compose up"]
19
+
20
+
21
+ FROM ubuntu:latest
22
 
23
+ RUN apt update && apt install openssh-server sudo -y
24
 
25
+ RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1000 test
26
 
27
+ RUN echo 'test:test' | chpasswd
28
 
29
+ RUN service ssh start
30
 
31
+ EXPOSE 22
32
 
33
+ CMD ["/usr/sbin/sshd","-D"]