kimi2api / Dockerfile
LerinaOwO's picture
Upload 6 files
e81c5f5 verified
raw
history blame contribute delete
464 Bytes
FROM python:3.11-slim
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1 \
PORT=7860
WORKDIR $HOME/app
COPY --chown=user requirements.txt ./
RUN pip install --upgrade pip && pip install -r requirements.txt
COPY --chown=user openai.py README.md ./
EXPOSE 7860
CMD ["uvicorn", "openai:app", "--host", "0.0.0.0", "--port", "7860"]