Update Dockerfile
Browse files- 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 |
-
#
|
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
|
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"]
|