Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ COPY bazaar ./bazaar
COPY data/synthetic ./data/synthetic
RUN pip install --no-cache-dir . && mkdir -p data/runtime
COPY --from=console /console/dist ./console/dist
# Run as a non-root user (uid 1000): required by Hugging Face Spaces, and good hardening
# everywhere else. The runtime dir the app writes to (audit log, LLM cache) is owned by it.
RUN useradd -m -u 1000 app && chown -R app:app /app
USER app
EXPOSE 8000
CMD ["sh", "-c", "uvicorn bazaar.gateway.app:default_app --factory --host 0.0.0.0 --port ${PORT}"]
Loading