Spaces:
Sleeping
Sleeping
File size: 461 Bytes
a0010e2 ead2ac2 a0010e2 ead2ac2 a0010e2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && apt-get install -y gcc g++ \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN --mount=type=cache,target=/root/.cache/pip pip install --upgrade pip && pip install --default-timeout=1000 -r requirements.txt
COPY ./app /app/app
COPY ./tests /app/tests
COPY ./datasets /app/datasets
COPY ./data /app/data
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|