memex-in commited on
Commit
afed508
·
verified ·
1 Parent(s): 3268a25

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a lightweight Python base image
2
+ FROM python:3.9-slim-buster
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Copy the HTML file and the server script into the container
8
+ # Ensure your HTML file is named 'real_webvm.html'
9
+ COPY real_webvm.html .
10
+ COPY run.sh .
11
+
12
+ # Make the run.sh script executable
13
+ RUN chmod +x run.sh
14
+
15
+ # Expose the port that the server will listen on
16
+ EXPOSE 8000
17
+
18
+ # Define the command to run when the container starts
19
+ # This will execute our run.sh script, which then starts the Python server
20
+ CMD ["./run.sh"]