Files
Nathanwoodburn.github.io/Dockerfile
Nathan Woodburn b8f3039629
All checks were successful
Check Code Quality / RuffCheck (push) Successful in 2m44s
Build Docker / BuildImage (push) Successful in 3m15s
feat: Update Dockerfile to use new UV system
Also fixes error in spotify refreshing
2025-11-01 12:17:25 +11:00

25 lines
606 B
Docker

FROM --platform=$BUILDPLATFORM python:3.13-alpine
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
# Set working directory
WORKDIR /app
# Install dependencies
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
uv sync --locked --no-install-project
# Copy the project into the image
ADD . /app
# Sync the project
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --locked
# Add mount point for data volume
# VOLUME /data
ENTRYPOINT ["uv", "run"]
CMD ["main.py"]