predict_Lottery_ticket
predict_Lottery_ticket copied to clipboard
自己部署到docker有什么要注意的吗?
在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"]