From 9682d5e58fe2562c1e8dabded28526c1771712fc Mon Sep 17 00:00:00 2001 From: ironballista <87903825+ironballista@users.noreply.github.com> Date: Sat, 2 Nov 2024 17:19:31 +0100 Subject: [PATCH] Introduced Dockerfile to build an image with which to run `sched.py`. --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e7e09fe --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# Use an official Python runtime as a parent image +FROM python:3.13-slim + +# Set the working directory in the container +WORKDIR /app + +# Copy the current directory contents into the container at /app +COPY . /app + +# Install any needed dependencies specified in requirements.txt +RUN pip install --no-cache-dir atproto schedule + +# Make port 8080 available to the world outside this container +EXPOSE 8080 + +# Run app.py when the container launches +CMD ["python3", "sched.py"] + -- 2.51.2