site/Dockerfile
g_it 6f93624b4b
Some checks are pending
lint / runner / vale (push) Waiting to run
Lint / MegaLinter (push) Waiting to run
Going for max minify for css, js, and html.
2026-03-15 00:48:10 +01:00

12 lines
345 B
Docker
Executable file

FROM python:3.13-slim AS builder
WORKDIR /app
COPY . .
RUN apt-get update && apt-get install -y nodejs npm && npm install -g terser clean-css-cli
RUN pip install --no-cache-dir -r ./requirements.txt
RUN zensical build
RUN rm ./deploy/sitemap.xml
RUN python minify.py
FROM caddy:alpine
COPY --from=builder /app/deploy /usr/share/caddy
EXPOSE 80