searchgpt / Dockerfile
cwadayi's picture
Update Dockerfile
6977d06 verified
raw
history blame contribute delete
387 Bytes
# SPDX-FileCopyrightText: Hadad <hadad@linuxmail.org>
# SPDX-License-Identifier: Apache-2.0
# 固定 Python 版本,避免不相容
FROM python:3.11-slim
# 設定工作目錄
WORKDIR /app
# 複製檔案
COPY . .
# 安裝相依
RUN pip install --no-cache-dir -U pip && \
pip install --no-cache-dir -r requirements.txt
# 開放 port
EXPOSE 7860
# 啟動
CMD ["python", "app.py"]