predict_Lottery_ticket icon indicating copy to clipboard operation
predict_Lottery_ticket copied to clipboard

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

Open cn-knight opened this issue 11 months ago • 0 comments

在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"]

cn-knight avatar Feb 05 '25 12:02 cn-knight