This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
# Stage 1: Build the static site using Hugo
|
||||
FROM hugomods/hugo:latest AS builder
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
# Run hugo build to compile markdown into static HTML/CSS/JS in the public/ folder
|
||||
RUN hugo --minify
|
||||
|
||||
# Stage 2: Serve the compiled static site using Nginx
|
||||
FROM nginx:alpine
|
||||
COPY --from=builder /src/public /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user