add initial Dockerfile
This commit is contained in:
parent
4c16791381
commit
0dfe3f3ce0
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
# Package versions
|
||||
ARG GOLANG_VERSION="1.24.3"
|
||||
ARG HUGO_VERSION="0.147.2"
|
||||
|
||||
# Build container
|
||||
FROM golang:${GOLANG_VERSION}
|
||||
ARG HUGO_VERSION
|
||||
LABEL org.opencontainers.image.title="D-B.CA Hugo Website Builder"
|
||||
LABEL org.opencontainers.image.authors="drew@brds.ca"
|
||||
LABEL org.opencontainers.image.description="Image based on the standard Golang image containing Hugo."
|
||||
|
||||
WORKDIR /go/hugo
|
||||
RUN wget https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_linux-amd64.tar.gz \
|
||||
&& tar xvvzf hugo_${HUGO_VERSION}_linux-amd64.tar.gz \
|
||||
&& mv hugo /usr/bin
|
||||
|
||||
WORKDIR /go
|
||||
RUN rm -rf /go/hugo
|
Loading…
x
Reference in New Issue
Block a user