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 +