-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |