File size: 667 Bytes
0804110 a14f60b a08e7fa 0804110 a32c537 0804110 a32c537 0804110 a32c537 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Set the Matplotlib cache directory to a writable location
ENV MPLCONFIGDIR=/tmp/matplotlib
# Install Flask, Gradio, and flask-cors
RUN pip install flask gradio flask-cors
# Install Git and clone the Mario game repository
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/reruns/mario.git /app/mario
# Copy your app.py to the container
COPY app.py /app/app.py
# Expose the ports for Flask and Gradio
EXPOSE 5000 7860
# Command to run your app with debugging enabled
CMD ["python", "app.py", "--debug"] |