chinatown_2 / Dockerfile
yanggan
设置 MODEL_NAME 为 gemini-3-flash-preview
4cbeb99
raw
history blame contribute delete
316 Bytes
FROM python:3.9
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
ENV MODEL_NAME="gemini-3-flash-preview"
WORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user . /app
CMD ["python3", "app.py"]