Something went wrong. Try again.
Pretty website for a WeatherFlow Tempest using InfluxDB via UDP Broadcasts
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930# Build stage - includes pip for installing dependenciesFROM cgr.dev/chainguard/python:latest-dev AS builder
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt --user
# Runtime stage - minimal production imageFROM cgr.dev/chainguard/python:latest
WORKDIR /app
# Copy installed packages from builderCOPY --from=builder /home/nonroot/.local/lib/python3.*/site-packages /home/nonroot/.local/lib/python3.13/site-packagesCOPY --from=builder /home/nonroot/.local/bin /home/nonroot/.local/bin
# Copy application codeCOPY app.py ./COPY public ./public
EXPOSE 9431
# Chainguard images run as nonroot user by defaultENV PATH="/home/nonroot/.local/bin:$PATH"ENV PYTHONPATH="/home/nonroot/.local/lib/python3.13/site-packages:$PYTHONPATH"
CMD ["-m", "gunicorn", "-w", "4", "-b", "0.0.0.0:9431", "app:app"]