chatglm-6b-api / Dockerfile
jiang1002's picture
Update Dockerfile
51eae25 verified
raw
history blame contribute delete
298 Bytes
FROM python:3.9-slim
ENV PYTHONUNBUFFERED=1
WORKDIR /app
# 只安装必要的包(不再需要 torch 和 transformers)
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["python", "app.py"]