File size: 891 Bytes
f69664a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Hugging Face Space builds from this repo root (Dockerfile, app.py, index.html, …).
# Do not use monorepo paths like sushi_atelier/… — those files are not in the Space clone.
#
# Media: HF Dataset PIANDT/sushi_atelier_artifacts — app.py proxies /sushi_atelier_artifacts/* using Bearer auth.
# Docker Spaces do not inject HF_TOKEN automatically: Space Settings → Repository secrets → HF_TOKEN (read access to that dataset).
# Optional: add a `sushi_atelier_artifacts/` folder here only if you want fallback local assets in the image.
#
# https://huggingface.co/docs/hub/spaces-sdks-docker
FROM python:3.9

RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"

WORKDIR /app

COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt

COPY . /app/

CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]