Init Commit
Start following the GitFLow
This commit is contained in:
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM alpine:latest AS builder
|
||||
WORKDIR /src
|
||||
ARG GOHUGO_LINK=https://github.com/gohugoio/hugo/releases/download/v0.110.0/hugo_0.110.0_linux-amd64.tar.gz
|
||||
RUN apk update && apk add curl tar
|
||||
RUN curl -LJO ${GOHUGO_LINK} && tar -xf hugo_0.110.0_linux-amd64.tar.gz
|
||||
RUN chmod +x /src/hugo
|
||||
|
||||
FROM alpine:latest
|
||||
WORKDIR /src
|
||||
COPY --from=builder /src/hugo /usr/bin/hugo
|
||||
COPY . /src
|
||||
ENTRYPOINT ["/usr/bin/hugo"]
|
||||
CMD ["--help"]
|
Reference in New Issue
Block a user