Update Dockerfile
Browse files- Dockerfile +10 -8
Dockerfile
CHANGED
@@ -21,23 +21,25 @@
|
|
21 |
FROM ubuntu:latest
|
22 |
|
23 |
# Update the package lists and install the SSH server
|
24 |
-
RUN apt-get update && apt-get upgrade -y
|
25 |
|
26 |
# Create an SSH user (replace "sshuser" with your desired username)
|
27 |
-
RUN useradd -m -d /home/sshuser -s /bin/bash sshuser
|
28 |
|
29 |
-
# Set a password for the SSH user (replace "sshpassword" with your desired password)
|
30 |
-
RUN echo 'sshuser:sshpassword' | chpasswd
|
31 |
|
32 |
-
# Generate SSH host keys
|
33 |
-
RUN ssh-keygen -A
|
34 |
|
35 |
-
RUN service ssh start
|
36 |
|
|
|
|
|
37 |
|
38 |
|
39 |
# Expose port 7768 for SSH
|
40 |
EXPOSE 7768
|
41 |
|
42 |
# Start the SSH server when the container runs
|
43 |
-
CMD ["
|
|
|
21 |
FROM ubuntu:latest
|
22 |
|
23 |
# Update the package lists and install the SSH server
|
24 |
+
RUN apt-get update && apt-get upgrade -y
|
25 |
|
26 |
# Create an SSH user (replace "sshuser" with your desired username)
|
27 |
+
# RUN useradd -m -d /home/sshuser -s /bin/bash sshuser
|
28 |
|
29 |
+
# # Set a password for the SSH user (replace "sshpassword" with your desired password)
|
30 |
+
# RUN echo 'sshuser:sshpassword' | chpasswd
|
31 |
|
32 |
+
# # Generate SSH host keys
|
33 |
+
# RUN ssh-keygen -A
|
34 |
|
35 |
+
# RUN service ssh start
|
36 |
|
37 |
+
COPY . .
|
38 |
+
RUN pip install -r requrirments.txt
|
39 |
|
40 |
|
41 |
# Expose port 7768 for SSH
|
42 |
EXPOSE 7768
|
43 |
|
44 |
# Start the SSH server when the container runs
|
45 |
+
CMD ["python","a.py"]
|