Update Dockerfile
Browse files- Dockerfile +20 -11
Dockerfile
CHANGED
@@ -1,13 +1,22 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
-
|
4 |
-
RUN apt
|
5 |
-
|
6 |
-
|
7 |
-
RUN
|
8 |
-
|
9 |
-
|
10 |
-
RUN
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"]
|