我有一个自定义 docker 镜像,我正在为一个小项目构建,我使用 pip 和 requirements.txt 文件安装需求。我还需要一种方法来将 Rapids-ai 安装到这个容器(pip 不支持)。我已经在为我的容器使用基本映像。有没有办法做到这一点?
这是 Dockerfile:
FROM mybaseimage
WORKDIR /app
COPY . /app
# Install requirements
COPY requirements.txt .
RUN python -m pip install -r requirements.txt
# Switching to a non-root user
RUN useradd appuser && chown -R appuser /app
USER appuser
CMD ["python", "app.py"]