Add docker stuff

This commit is contained in:
Tristan Andrus 2025-03-25 22:56:42 -06:00
parent 2050078052
commit f4c8b07814
2 changed files with 26 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -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"]

13
docker-compose.yml Normal file
View File

@ -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