- Install uv from astral-sh/uv for Python package management - Update entrypoint.sh to handle CMD argument and delegate to exec - Set default CMD to "caddy" in Dockerfile - Update task script to pull latest build image and set CI=true for pnpm install
25 lines
541 B
Docker
25 lines
541 B
Docker
FROM node:22-slim
|
|
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
RUN corepack enable && \
|
|
apt-get update && \
|
|
apt-get install -y git hugo caddy curl && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
# Install uv for Python package management
|
|
COPY --from=ghcr.io/astral-sh/uv:0.7.21 /uv /uvx /bin/
|
|
|
|
COPY ./bin /usr/local/bin
|
|
COPY ./image/entrypoint.sh /
|
|
|
|
EXPOSE 80
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
CMD ["caddy"]
|
|
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
CMD curl -f http://localhost:80/ || exit 1
|