Spaces:
Running
Running
deploy(hf): sync szl-holdings/vertical-services@b39ab15a00bfa9804bf3f39acd8e6832474b63fc derived COPY set
ff4f3ef verified Download Dockerfile from SZLHOLDINGS/vertical-services: direct link, hf CLI and curl.
- Browser
- Download file 937 Bytes
-
https://huggingface.co/spaces/SZLHOLDINGS/vertical-services/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SZLHOLDINGS/vertical-services/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SZLHOLDINGS/vertical-services/resolve/main/Dockerfile
937 Bytes
| FROM python:3.15-slim@sha256:65a65fc7b30b06cb6df4930fd4650697cb23f4c2698ab81fc87e4b031bc36928 | |
| ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| COPY requirements.txt ./requirements.txt | |
| RUN python -m pip install --disable-pip-version-check --no-cache-dir --require-hashes -r requirements.txt \ | |
| && python -m pip check | |
| COPY deploy/app.py ./app.py | |
| COPY deploy/szl_verticals/ ./szl_verticals/ | |
| COPY deploy/source_revision.txt ./source_revision.txt | |
| COPY contracts/fashion-lineage.v1.json ./contracts/fashion-lineage.v1.json | |
| RUN useradd --create-home --uid 1000 --shell /usr/sbin/nologin szl && chown -R szl:szl /app | |
| USER szl | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:7860/healthz', timeout=4).read()" | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--no-server-header"] | |