From a0069e35296d51ab62e694ff870fd204a95a90c4 Mon Sep 17 00:00:00 2001 From: Amit Serper Date: Mon, 4 Dec 2023 20:58:27 -0500 Subject: [PATCH] Docker stuff --- Dockerfile | 14 ++++++++++++++ requirements.txt | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 Dockerfile create mode 100644 requirements.txt diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bcb7a42 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +# Use an appropriate base image with Python pre-installed +FROM python:3.8-slim + +# Set the working directory inside the container +WORKDIR /app + +# Copy the entire current directory into the container at /app +COPY . /app + +# Install any Python dependencies +RUN pip install -r requirements.txt + +# Run your Python script +CMD ["python", "main.py"] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..f97e738 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,2 @@ +mastodon.py +feedparser