File size: 479 Bytes
47fc572
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bebdc42
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.11

RUN useradd -m -u 1000 chameleon

USER chameleon

ENV PATH="/home/chameleon/.local/bin:$PATH"

WORKDIR /app

COPY --chown=chameleon requirements.txt requirements.txt

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

COPY --chown=chameleon . .

# Hugging Face Space port
ENV PORT=7860

# Expose the port
EXPOSE 7860

# Start command for Hugging Face Space
# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
CMD ["python", "app.py"]