blog/Dockerfile

27 lines
721 B
Docker
Raw Permalink Normal View History

2020-05-13 12:13:31 +02:00
FROM golang:1.14.2-alpine3.11 as builder
2020-05-13 12:13:31 +02:00
ARG HUGO_VERSION=0.70.0
ARG RCLONE_VERSION=1.51.0
RUN set -ex \
&& apk add --no-cache \
gcc \
git \
musl-dev \
&& GO111MODULE=on GO_ENABLED=0 GOOS=linux go get -a -ldflags '-extldflags "-static"' -v github.com/gohugoio/hugo@v$HUGO_VERSION \
&& GO111MODULE=on GO_ENABLED=0 GOOS=linux go get -a -ldflags '-extldflags "-static"' -v github.com/rclone/rclone@v$RCLONE_VERSION
FROM alpine:3.11
COPY --from=builder /go/bin/hugo /usr/bin/hugo
COPY --from=builder /go/bin/rclone /usr/bin/rclone
RUN set -ex \
&& apk add --no-cache \
curl \
git \
make \
npm \
2020-03-18 09:01:50 +01:00
&& npm install @remy/webmention \
&& mkdir -p ~/.config/rclone