Gregniuki commited on
Commit
a32c537
·
verified ·
1 Parent(s): 701daab

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -10,15 +10,15 @@ ENV MPLCONFIGDIR=/tmp/matplotlib
10
  # Install Flask, Gradio, and flask-cors
11
  RUN pip install flask gradio flask-cors
12
 
13
- # Clone the Mario game repository
14
  RUN apt-get update && apt-get install -y git
15
  RUN git clone https://github.com/reruns/mario.git /app/mario
16
 
17
  # Copy your app.py to the container
18
  COPY app.py /app/app.py
19
 
20
- # Expose the port Gradio will run on
21
- EXPOSE 7860
22
 
23
- # Command to run your app
24
- CMD ["python", "app.py"]
 
10
  # Install Flask, Gradio, and flask-cors
11
  RUN pip install flask gradio flask-cors
12
 
13
+ # Install Git and clone the Mario game repository
14
  RUN apt-get update && apt-get install -y git
15
  RUN git clone https://github.com/reruns/mario.git /app/mario
16
 
17
  # Copy your app.py to the container
18
  COPY app.py /app/app.py
19
 
20
+ # Expose the ports for Flask and Gradio
21
+ EXPOSE 5000 7860
22
 
23
+ # Command to run your app with debugging enabled
24
+ CMD ["python", "app.py", "--debug"]