28 lines
585 B
Docker
28 lines
585 B
Docker
FROM python:3.13-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PIP_NO_CACHE_DIR=1 \
|
|
PYTHONPATH=/app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
curl \
|
|
git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY req.txt ./
|
|
RUN pip install --upgrade pip && pip install -r req.txt
|
|
|
|
COPY dev_backend ./dev_backend
|
|
COPY custom_search_api ./custom_search_api
|
|
COPY model_export ./model_export
|
|
|
|
WORKDIR /app/dev_backend
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "main:api", "--host", "0.0.0.0", "--port", "8000"]
|