Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
@@ -18,10 +18,10 @@
|
|
18 |
# CMD ["docker-compose up"]
|
19 |
|
20 |
# Use a base image with an SSH server (you can choose a specific image based on your requirements)
|
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
|
@@ -34,8 +34,10 @@ RUN apt-get update && apt-get upgrade -y
|
|
34 |
|
35 |
# RUN service ssh start
|
36 |
|
|
|
|
|
37 |
COPY . .
|
38 |
-
RUN
|
39 |
|
40 |
|
41 |
|
@@ -43,4 +45,4 @@ RUN python -m pip install -r requirements.txt
|
|
43 |
EXPOSE 7860
|
44 |
|
45 |
# Start the SSH server when the container runs
|
46 |
-
CMD ["
|
|
|
18 |
# CMD ["docker-compose up"]
|
19 |
|
20 |
# Use a base image with an SSH server (you can choose a specific image based on your requirements)
|
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
|
|
|
34 |
|
35 |
# RUN service ssh start
|
36 |
|
37 |
+
FROM python:3.9
|
38 |
+
|
39 |
COPY . .
|
40 |
+
RUN pip3 install -r requirements.txt
|
41 |
|
42 |
|
43 |
|
|
|
45 |
EXPOSE 7860
|
46 |
|
47 |
# Start the SSH server when the container runs
|
48 |
+
CMD ["python3","app.py"]
|