2024-03-29 17:50:13 +03:00
|
|
|
FROM python:3.11-slim as builder
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
|
|
ENV PYTHONPATH src
|
2024-06-06 20:18:48 +03:00
|
|
|
ARG index_url
|
|
|
|
ENV UV_EXTRA_INDEX_URL ${index_url}
|
2024-03-29 17:50:13 +03:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
COPY src/requirements.txt .
|
|
|
|
|
|
|
|
RUN pip install --upgrade pip && pip install -r requirements.txt
|
|
|
|
|
|
|
|
COPY src src
|
|
|
|
|
|
|
|
COPY prompt.txt .
|
|
|
|
|
|
|
|
ENTRYPOINT ["python", "src/app.py"]
|
|
|
|
CMD ["-b", "0.0.0.0:3000"]
|