Gregniuki commited on
Commit
0804110
·
verified ·
1 Parent(s): 4b9f064

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.9-slim
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /app
6
+
7
+ # Install Flask and Gradio
8
+ RUN pip install flask gradio
9
+
10
+ # Clone the Mario game repository
11
+ RUN apt-get update && apt-get install -y git
12
+ RUN git clone https://github.com/reruns/mario.git /app/mario
13
+
14
+ # Copy your app.py to the container
15
+ COPY app.py /app/app.py
16
+
17
+ # Expose the port Gradio will run on
18
+ EXPOSE 7860
19
+
20
+ # Command to run your app
21
+ CMD ["python", "app.py"]