shopify-store-audit / Dockerfile
aatmk-panse
fix: move all files to repo root (HF Spaces requires README.md at root)
699d744
raw
history blame contribute delete
574 Bytes
FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && \
apt-get install -y --no-install-recommends curl && \
rm -rf /var/lib/apt/lists/*
COPY . /app/env
WORKDIR /app/env
RUN pip install --no-cache-dir \
"openenv-core[core]>=0.2.2" \
fastapi>=0.115.0 \
uvicorn>=0.24.0 \
pydantic>=2.0.0
ENV PYTHONPATH="/app/env:$PYTHONPATH"
ENV PORT=8000
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD curl -f http://localhost:${PORT}/health || exit 1
EXPOSE 8000
CMD uvicorn server.app:app --host 0.0.0.0 --port ${PORT}