From f4c8b07814a5f0763ba1baee744ea6a11343ab46 Mon Sep 17 00:00:00 2001 From: Tristan Andrus Date: Tue, 25 Mar 2025 22:56:42 -0600 Subject: [PATCH] Add docker stuff --- Dockerfile | 13 +++++++++++++ docker-compose.yml | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0d36541 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.12-slim + +WORKDIR /app + +COPY requirements.txt ./ + +RUN pip install --no-cache-dir -r requirements.txt + +COPY . ./ + +EXPOSE 35350 + +CMD ["python", "basketwatch.py"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..882d9b8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +services: + basket-watch: + build: . + container_name: basket_watch + ports: + - "35350:35350" + volumes: + - /serve/data/basket:/serve/data/basket + environment: + - UID=${UID:-1000} + - GID=1000 + restart: unless-stopped +