Some checks are pending
Build and Push Docker Container / build-and-push (push) Waiting to run
14 lines
310 B
Docker
14 lines
310 B
Docker
# Compile the hugo site
|
|
FROM klakegg/hugo:ext-alpine AS builder
|
|
WORKDIR /app
|
|
COPY ./hugo .
|
|
RUN hugo --minify --destination /output
|
|
|
|
# Setup deployment
|
|
FROM alpine:latest
|
|
WORKDIR /www
|
|
COPY --from=builder /output /www
|
|
RUN apk add --no-cache busybox-extras
|
|
EXPOSE 80
|
|
CMD ["httpd", "-f", "-p", "80", "-h", "/www"]
|