21 lines
423 B
Docker
21 lines
423 B
Docker
FROM node:20-slim
|
|
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
RUN corepack enable && \
|
|
apt-get update && \
|
|
apt-get install -y git hugo caddy && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./bin /usr/local/bin
|
|
COPY ./image/entrypoint.sh /
|
|
|
|
EXPOSE 80
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
|
CMD curl -f http://localhost:80/ || exit 1
|