hugo_website/Dockerfile
sthope 16fa7ce719
Some checks failed
continuous-integration/drone/push Build is failing
initial commit
2021-09-06 17:02:29 +02:00

24 lines
686 B
Docker

FROM alpine:latest
LABEL maintainer="Sthope <HopelessAutomations@gmail.com>"
RUN apk add --no-cache \
curl \
git \
openssh-client \
rsync \
build-base \
libc6-compat
RUN HUGO=$(curl -Is https://github.com/gohugoio/hugo/releases/latest | grep -Fi Location | sed -E 's/.*tag\/v(.*)/\1/g;' |xargs ) && \
export HUGO && \
mkdir -p /usr/local/src && \
cd /usr/local/src && \
curl -L "https://github.com/gohugoio/hugo/releases/download/v${HUGO}/hugo_extended_${HUGO}_linux-64bit.tar.gz" | tar -xz && \
mv hugo /usr/local/bin/hugo && \
addgroup -Sg 1000 hugo && \
adduser -Sg hugo -u 1000 -h /src hugo
WORKDIR /src
EXPOSE 1313