25 lines
593 B
Docker
25 lines
593 B
Docker
FROM python:3.12-slim
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
gcc g++ make curl libssl-dev libffi-dev && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt pyproject.toml README.md ./
|
|
COPY main.py run.py support.py account_store.py ./
|
|
COPY openai_pool_orchestrator ./openai_pool_orchestrator
|
|
COPY config ./config
|
|
|
|
RUN mkdir -p /app/data/tokens && \
|
|
pip install --no-cache-dir -r requirements.txt && \
|
|
pip install --no-cache-dir -e .
|
|
|
|
VOLUME ["/app/data"]
|
|
|
|
ENTRYPOINT ["python", "run.py"]
|
|
CMD ["--help"]
|