From b13c85c01ff0906883ab94fdec7af25326dae4ea Mon Sep 17 00:00:00 2001 From: Tyler Adler Date: Sun, 5 May 2024 17:19:12 -0700 Subject: [PATCH] dockerfile --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile 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