Files
webprewviewapi/Dockerfile
2025-02-28 23:10:45 +08:00

17 lines
310 B
Docker

FROM python:3.12-alpine
WORKDIR /app
EXPOSE 8000
COPY requirements.txt /app
RUN pip config set global.index-url https://mirrors.ustc.edu.cn/pypi/web/simple
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
RUN chmod +x /app/entrypoint.sh
ENTRYPOINT [ "/app/entrypoint.sh" ]