Skip to content

Commit 214ac3d

Browse files
committed
Dockerize the docs
1 parent c9f69d2 commit 214ac3d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM alpine:latest as builder
2+
WORKDIR /build
3+
ADD . /build/
4+
RUN wget https://github.com/gohugoio/hugo/releases/download/v0.62.2/hugo_0.62.2_Linux-64bit.tar.gz
5+
RUN tar -xzvf hugo_0.62.2_Linux-64bit.tar.gz
6+
RUN ./hugo
7+
8+
FROM nginx:latest
9+
COPY --from=builder /build/public /usr/share/nginx/html
10+
ENV NGINX_PORT 80

0 commit comments

Comments
 (0)