mirror of
https://github.com/levywang/avhub.git
synced 2026-02-21 16:57:21 +08:00
2.Improve backend concurrency\n- Add copyright information 3.Optimize search result sorting rules 4.Add caching functionality and related configurations 5.Update documentation
17 lines
405 B
Docker
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 |