This commit is contained in:
parent
ce80c564e9
commit
16fa7ce719
@ -8,5 +8,3 @@ steps:
|
|||||||
hugo_version: 0.88.1
|
hugo_version: 0.88.1
|
||||||
pull: always
|
pull: always
|
||||||
validate: false
|
validate: false
|
||||||
commands:
|
|
||||||
- hugo new site /blog
|
|
24
Dockerfile
Normal file
24
Dockerfile
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user