Files
lingma-openai-gateway/Dockerfile
root 4e5f451489
Some checks failed
CI / lint-and-compile (push) Has been cancelled
CI / lint-and-compile (pull_request) Has been cancelled
chore: simplify build to fixed Tencent pip mirror
2026-04-17 16:29:18 +08:00

21 lines
593 B
Docker

FROM mcr.microsoft.com/playwright/python:v1.52.0-jammy
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
ARG PIP_INDEX_URL=https://mirrors.cloud.tencent.com/pypi/simple
ARG PIP_TRUSTED_HOST=mirrors.cloud.tencent.com
COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir --retries 5 --timeout 120 \
-i "${PIP_INDEX_URL}" --trusted-host "${PIP_TRUSTED_HOST}" \
-r /app/requirements.txt
COPY app /app/app
EXPOSE 8317
CMD ["sh", "-c", "python /app/app/bootstrap_lingma.py && uvicorn app.main:app --host ${HOST:-0.0.0.0} --port ${PORT:-8317}"]