File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1
1
FROM golang:1.13.3-stretch
2
- RUN apt-get update && apt-get install -y python-requests python-yaml file jq unzip protobuf-compiler libprotobuf-dev && \
2
+ RUN apt-get update && apt-get install -y curl python-requests python-yaml file jq unzip protobuf-compiler libprotobuf-dev && \
3
3
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
4
+ RUN curl -sL https://deb.nodesource.com/setup_6.x | sh -
5
+ RUN apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
6
+ RUN npm install -g postcss-cli autoprefixer
4
7
RUN go clean -i net && \
5
8
go install -tags netgo std && \
6
9
go install -race -tags netgo std
10
+ ENV HUGO_VERSION=v0.59.1
11
+ RUN git clone https://github.com/gohugoio/hugo.git --branch ${HUGO_VERSION} --depth 1 && \
12
+ cd hugo && go install --tags extended && cd ../ && \
13
+ rm -rf hugo/ && rm -rf /go/pkg /go/src
7
14
RUN curl -fsSLo shfmt https://github.com/mvdan/sh/releases/download/v1.3.0/shfmt_v1.3.0_linux_amd64 && \
8
15
echo "b1925c2c405458811f0c227266402cf1868b4de529f114722c2e3a5af4ac7bb2 shfmt" | sha256sum -c && \
9
16
chmod +x shfmt && \
@@ -19,6 +26,8 @@ RUN GO111MODULE=on go get -tags netgo \
19
26
rm -rf /go/pkg /go/src
20
27
RUN curl -Ls https://github.com/golang/dep/releases/download/v0.5.0/dep-linux-amd64 -o $GOPATH/bin/dep && \
21
28
chmod +x $GOPATH/bin/dep
29
+
30
+ ENV NODE_PATH=/usr/lib/node_modules
22
31
COPY build.sh /
23
32
ENV GOCACHE=/go/cache
24
33
ENTRYPOINT ["/build.sh" ]
You can’t perform that action at this time.
0 commit comments