Browse Source

Update

master 0.73.0
Jan-Lukas Else 1 year ago
parent
commit
135c3c4b0b
  1. 10
      Dockerfile

10
Dockerfile

@ -1,17 +1,17 @@
FROM golang:1.14-alpine3.11 AS build
FROM golang:1.14-alpine3.12 AS build
RUN apk add -X http://dl-cdn.alpinelinux.org/alpine/v3.11/main/ -X http://dl-cdn.alpinelinux.org/alpine/v3.11/community/ --no-cache gcc g++ musl-dev git
RUN apk add -X http://dl-cdn.alpinelinux.org/alpine/v3.12/main/ -X http://dl-cdn.alpinelinux.org/alpine/v3.12/community/ --no-cache gcc g++ musl-dev git
WORKDIR /hugo
RUN git clone --branch v0.72.0 https://github.com/gohugoio/hugo.git .
RUN git clone --branch v0.73.0 https://github.com/gohugoio/hugo.git .
RUN go build -v --tags extended
FROM alpine:3.11
FROM alpine:3.12
COPY --from=build /hugo/hugo /usr/bin/hugo
RUN apk add -X http://dl-cdn.alpinelinux.org/alpine/v3.11/main/ -X http://dl-cdn.alpinelinux.org/alpine/v3.11/community/ --no-cache ca-certificates libc6-compat libstdc++ git go
RUN apk add -X http://dl-cdn.alpinelinux.org/alpine/v3.12/main/ -X http://dl-cdn.alpinelinux.org/alpine/v3.12/community/ --no-cache ca-certificates libc6-compat libstdc++ git go
VOLUME /site
WORKDIR /site