Skip to content

自己部署到docker有什么要注意的吗? #90

@cn-knight

Description

@cn-knight

在RUN pip install --no-cache-dir -r requirements.txt那里下载TensorFlow‌等待了很久,不知道是文件太大还是有问题

# Use official Python image
FROM python:3.8

# Set working directory in the container
WORKDIR /app

# Copy project files into the container
COPY . /app

# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Set timezone to Beijing
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

# Set entrypoint to the script
CMD ["bash", "run_prediction.sh"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions