Yahir commited on
Commit
bf39701
·
1 Parent(s): 882ff11

Update Dockerfile

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