mirror of
https://github.com/Yuukiy/JavSP.git
synced 2026-10-18 14:50:56 +08:00
05408137cf
* 添加Docker构建脚本 * chore: Update Docker build workflow to fetch all history for all tags and branches
27 lines
489 B
Docker
27 lines
489 B
Docker
FROM python:3.12-slim AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
ENV PATH=/root/.local/bin:$PATH
|
|
RUN pip install pipx && \
|
|
pipx ensurepath && \
|
|
pipx install poetry
|
|
RUN apt update && apt install -y git
|
|
|
|
COPY . .
|
|
|
|
RUN poetry self add poetry-dynamic-versioning && \
|
|
poetry config virtualenvs.in-project true && \
|
|
poetry install && \
|
|
rm -rf /app/.git
|
|
|
|
|
|
FROM python:3.12-slim as runner
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/ /app/
|
|
|
|
ENTRYPOINT ["/app/.venv/bin/javsp"]
|
|
CMD ["-i", "/video"]
|