feat: add standalone CLI project
This commit is contained in:
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
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 ./
|
||||
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"]
|
||||
Reference in New Issue
Block a user