diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..68c4e79 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +# Use an official Python runtime as a parent image +FROM python:3.9-slim + +# Set the working directory in the container to /app +WORKDIR /app + +# Clone the GitHub repository +RUN apt-get update && \ + apt-get install -y git && \ + git clone https://github.com/Toylerrr/rawg-to-steam.git . + +# Install any needed packages specified in requirements.txt +RUN pip install --no-cache-dir -r requirements.txt + +# Expose port 5000 to the outside world +EXPOSE 5000 + +# Define environment variable +ENV FLASK_APP=main.py + +# Run app.py when the container launches +CMD ["flask", "run", "--host=0.0.0.0"] \ No newline at end of file