SmartestHome/workshop/Dockerfile

20 lines
749 B
Docker

# workshop — the project notebook behind the workshop assistant (docs/workshop-assistant.md).
# `restart: unless-stopped`, same as every other write service here.
FROM python:3.11-slim
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
# git is the one runtime dependency this service has beyond the stdlib — git_ops.py
# shells out to it. Installed explicitly rather than assumed present in the base image.
RUN apt-get update && apt-get install -y --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# stdlib only (sqlite3 + http.server) — no requirements.txt, same call as
# admin-canvas/server.py and pantry-vision/server.py.
COPY server.py knowledge.py gitea.py git_ops.py ./
CMD ["python", "server.py"]