File size: 437 Bytes
1e2a35a
 
fa89aca
 
 
 
 
 
542774a
1e2a35a
fa89aca
1e2a35a
 
 
 
92f506d
1e2a35a
bf60cde
be1e998
e5c007e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM python:3.10-buster

RUN useradd -m -u 1000 user

USER user

COPY --chown=user . /app/commandr-api-local

WORKDIR /app/commandr-api-local

# COPY . .

RUN pip3 install --upgrade pip

RUN pip3 install -r requirements.txt
RUN pip install fastapi uvicorn

# CMD ["python", "app.py"]
CMD ["huggingface-cli", "login", "--token", "$HUGGINGFACE_TOKEN"]
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]