Yahir commited on
Commit
7815590
1 Parent(s): 8062dd4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -15
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.9
2
 
3
  RUN apt update
4
  RUN apt install -y cmake make gcc g++ git curl sudo
@@ -7,18 +7,7 @@ RUN apt install -y nodejs
7
  RUN npm i -g yarn
8
  RUN yarn global add wetty
9
 
 
 
10
 
11
- # Create a user called "user" with password "password"
12
- RUN useradd -m -s /bin/bash -p $(openssl passwd -1 password) user
13
-
14
- # Add the user to the sudo group
15
- RUN usermod -aG sudo user
16
-
17
- # Set the default user to "user"
18
- USER user
19
-
20
- # Expose port 3000 for Wetty
21
- EXPOSE 3000
22
-
23
- # Start Wetty
24
- CMD ["wetty", "-p", "3000", "--allow-remote-hosts"]
 
1
+ FROM debian:11
2
 
3
  RUN apt update
4
  RUN apt install -y cmake make gcc g++ git curl sudo
 
7
  RUN npm i -g yarn
8
  RUN yarn global add wetty
9
 
10
+ RUN echo 'root:root' | chpasswd
11
+ EXPOSE 7860
12
 
13
+ CMD ["wetty", "-p 7860", "--allow-remote-hosts"]