Mario2 / Dockerfile
Gregniuki's picture
Update Dockerfile
a08e7fa verified
raw
history blame
515 Bytes
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory in the container
WORKDIR /app
# Install Flask, Gradio, and flask-cors
RUN pip install flask gradio flask-cors
# 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 port Gradio will run on
EXPOSE 7860
# Command to run your app
CMD ["python", "app.py"]