Replace Dockerfile and docker-compose.yml with .meal versions, update references
CI / test-and-package (push) Successful in 1m53s

This commit is contained in:
agentbox
2026-08-01 05:52:12 +00:00
parent 66ee072046
commit 219003dffb
5 changed files with 40 additions and 67 deletions
+22 -8
View File
@@ -1,10 +1,24 @@
FROM node:latest
WORKDIR /workdir
FROM python:3.13-alpine
RUN apt update && \
apt install -y git bash docker-cli && \
npm install -g --ignore-scripts @earendil-works/pi-coding-agent && \
pi install npm:pi-subagents
WORKDIR /app
COPY * /workdir/
ENTRYPOINT ["sleep", "infinity"]
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY app.py models.py auth.py meals.py ./
COPY templates/ templates/
COPY static/ static/
# Create persistent data directory
RUN mkdir -p /data
ENV DB_PATH=/data/meals.db
EXPOSE 5000
# Generate a default secret key at build time (override in prod)
ENV SECRET_KEY=change-me-in-production
# Run in production mode (no debug, use a WSGI server)
CMD ["flask", "--app", "app:create_app()", "run", "--host=0.0.0.0", "--port=5000"]