1 Star 4 Fork 10

航. / autogpt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 637 Bytes
一键复制 编辑 原始数据 按行查看 历史
航. 提交于 2023-04-15 01:11 . autogpt
# Use an official Python base image from the Docker Hub
FROM python:3.11-slim
# Set environment variables
ENV PIP_NO_CACHE_DIR=yes \
PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1
# Create a non-root user and set permissions
RUN useradd --create-home appuser
WORKDIR /home/appuser
RUN chown appuser:appuser /home/appuser
USER appuser
# Copy the requirements.txt file and install the requirements
COPY --chown=appuser:appuser requirements.txt .
RUN pip install --no-cache-dir --user -r requirements.txt
# Copy the application files
COPY --chown=appuser:appuser scripts/ .
# Set the entrypoint
ENTRYPOINT ["python", "main.py"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openWHang/autogpt.git
git@gitee.com:openWHang/autogpt.git
openWHang
autogpt
autogpt
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891