- app/services/recipe/tag_inferrer.py: infer tags from recipe ingredient text - app/db/migrations/022_recipe_generic_flag.sql, 029_inferred_tags.sql: schema migrations - app/api/endpoints/imitate.py: recipe imitation endpoint stub - app/api/endpoints/community.py: hall-of-chaos easter egg endpoint - scripts/pipeline/infer_recipe_tags.py, backfill_keywords.py: pipeline scripts - scripts/pipeline/build_recipe_index.py: extended index builder - Dockerfile: explicit .env removal as defense-in-depth - frontend/src/components/FeedbackButton.vue: feedback UX improvements - frontend/src/style.css: minor style tweaks - app/cloud_session.py: cloud session improvements - tests/api/test_community_endpoints.py: additional test coverage
32 lines
1.2 KiB
Docker
32 lines
1.2 KiB
Docker
FROM continuumio/miniconda3:latest
|
|
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies for OpenCV + pyzbar
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
libzbar0 libgl1 libglib2.0-0 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install circuitforge-core from sibling directory (compose sets context: ..)
|
|
COPY circuitforge-core/ ./circuitforge-core/
|
|
RUN conda run -n base pip install --no-cache-dir -e ./circuitforge-core
|
|
|
|
# Create kiwi conda env and install app
|
|
COPY kiwi/environment.yml .
|
|
RUN conda env create -f environment.yml
|
|
|
|
COPY kiwi/ ./kiwi/
|
|
|
|
# Remove gitignored config files that may exist locally — defense-in-depth.
|
|
# The parent .dockerignore should exclude these, but an explicit rm guarantees
|
|
# they never end up in the cloud image regardless of .dockerignore placement.
|
|
RUN rm -f /app/kiwi/.env
|
|
|
|
# Install cf-core into the kiwi env BEFORE installing kiwi (kiwi lists it as a dep)
|
|
RUN conda run -n kiwi pip install --no-cache-dir -e /app/circuitforge-core
|
|
WORKDIR /app/kiwi
|
|
RUN conda run -n kiwi pip install --no-cache-dir -e .
|
|
|
|
EXPOSE 8512
|
|
CMD ["conda", "run", "--no-capture-output", "-n", "kiwi", \
|
|
"uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8512"]
|