File size: 424 Bytes
5c69859
dcca542
5c69859
dcca542
5c69859
dcca542
f8bdf0c
 
 
 
5c69859
 
dcca542
f8bdf0c
 
dcca542
5c69859
 
dcca542
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.10-slim

RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Make cache directory
RUN mkdir -p /data/cache

# Copy code
COPY ./app /app/app
COPY ./app/requirements.txt /app/requirements.txt

# Install dependencies
RUN pip install --upgrade pip && pip install -r /app/requirements.txt

EXPOSE 7860

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