deploy: P4 stack kit — docker-compose (app + Tailscale sidecar, userspace), systemd unit (Delegate=yes), Dockerfile on 3.14-slim with --state-dir, serve.json, gitignore stack-local .env/state
This commit is contained in:
@@ -1,15 +1,18 @@
|
||||
# Bike-Tinder app container (Phase 2 build).
|
||||
# The compose stack, systemd unit and Tailscale sidecar belong to the parent —
|
||||
# Bike-Tinder app container (Phase 4 deploy).
|
||||
# The compose stack, systemd unit and Tailscale sidecar live beside this file —
|
||||
# this file is only the app image contract.
|
||||
FROM python:3.13-slim
|
||||
FROM python:3.14-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY requirements.txt .
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY app/ ./app/
|
||||
|
||||
# Data lands on the stack volume: /data/bike-tinder.sqlite3 and /data/img/
|
||||
# Data lands on the stack volume: /data/bike-tinder.sqlite3 and /data/img/.
|
||||
# /state is the hunt state dir (bind-mounted read-only) used by POST /api/import.
|
||||
EXPOSE 8000
|
||||
CMD ["python", "-m", "app.serve", "--host", "0.0.0.0", "--port", "8000", "--db", "/data/bike-tinder.sqlite3", "--img-dir", "/data/img"]
|
||||
CMD ["python", "-m", "app.serve", "--host", "0.0.0.0", "--port", "8000", \
|
||||
"--db", "/data/bike-tinder.sqlite3", "--img-dir", "/data/img", \
|
||||
"--state-dir", "/state"]
|
||||
|
||||
Reference in New Issue
Block a user