This commit is contained in:
@ -10,7 +10,7 @@ RUN apk add --no-cache \
|
||||
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 ) && \
|
||||
RUN HUGO=$(curl -s "https://api.github.com/repos/gohugoio/hugo/releases/latest" | awk -F '"' '/tag_name/{print $4}'| sed -E 's/v//g;') && \
|
||||
export HUGO && \
|
||||
mkdir -p /usr/local/src && \
|
||||
cd /usr/local/src && \
|
||||
@ -21,4 +21,5 @@ RUN HUGO=$(curl -Is https://github.com/gohugoio/hugo/releases/latest | grep
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
EXPOSE 1313
|
||||
EXPOSE 1313
|
||||
|
||||
|
Reference in New Issue
Block a user