Perplexica-FrontEnd / Dockerfile
dengzhile138's picture
Create Dockerfile
f48bc96 verified
raw
history blame contribute delete
325 Bytes
# 使用适合的 Python 基础镜像
FROM python:3.9-slim
# 设置工作目录
WORKDIR /app
# 复制项目文件
COPY . /app
# 安装依赖
RUN pip install --no-cache-dir -r requirements.txt
# 确保 /app 目录的权限
RUN chmod -R 755 /app
# 暴露必要的端口
EXPOSE 7860
# 启动命令
CMD ["python", "app.py"]