Add initial Dockerfile

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2023-02-24 21:30:43 +05:30
commit be109b8a5e
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM alpine:latest
RUN apk add --no-cache go libc6-compat
ARG HUGO_VERSION
RUN wget "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" && \
tar -xf "hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz" && \
mv ./hugo /usr/bin/hugo && \
rm -rf "hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz"
CMD ["/usr/bin/hugo"]