This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
FROM klakegg/hugo:ext-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY ./hugo .
|
||||
RUN hugo --minify --destination /output
|
||||
RUN hugo --minify --destination ./public
|
||||
|
||||
# Setup deployment
|
||||
FROM alpine:latest
|
||||
WORKDIR /www
|
||||
COPY --from=builder /output /www
|
||||
COPY --from=builder /app/public /www
|
||||
RUN apk add --no-cache busybox-extras
|
||||
EXPOSE 80
|
||||
CMD ["httpd", "-f", "-p", "80", "-h", "/www"]
|
||||
|
||||
Reference in New Issue
Block a user