avhub/Dockerfile
levywang 474b0a3041 feat: 1.Optimize search result label styles and deduplicate API content
2.Improve backend concurrency\n- Add copyright information
3.Optimize search result sorting rules
4.Add caching functionality and related configurations
5.Update documentation
2025-03-15 20:55:34 +08:00

17 lines
405 B
Docker

FROM python:3.13-slim
# 设置工作目录
WORKDIR /app
COPY . /app
# 安装依赖
RUN apt-get update && apt-get install -y --no-install-recommends nginx
RUN pip3 install -r requirements.txt
# 修改Nginx配置
RUN rm -rf /etc/nginx/sites-enabled/default && cp /app/nginx.example.conf /etc/nginx/sites-enabled/default
CMD ["sh", "-c", "python3 main.py & nginx -g 'daemon off;'"]
EXPOSE 80
EXPOSE 8000