Added Docker image config
This commit is contained in:
parent
8d07fe732c
commit
b1d1716fbd
3 changed files with 59 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
FROM alpine:latest AS builder
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install Hugo
|
||||
RUN apk add --no-cache hugo
|
||||
|
||||
# Copy site files for building
|
||||
COPY . ./
|
||||
|
||||
# Generate the site
|
||||
RUN hugo --minify
|
||||
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=builder /usr/src/app/public /usr/share/nginx/html
|
||||
Reference in a new issue