forked from flemay/3musketeers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (18 loc) · 676 Bytes
/
Dockerfile
File metadata and controls
22 lines (18 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM golang
LABEL maintainer "@flemay"
# install hugo
WORKDIR /opt/hugo
ENV HUGO_VERSION 0.44
ENV HUGO_BIN_NAME hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz
ENV HUGO_BIN_URL https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_BIN_NAME}
RUN wget -qO- "${HUGO_BIN_URL}" | tar xz
ENV PATH "/opt/hugo:${PATH}"
# install node and few modules needed by Hugo
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g postcss-cli
# install netlifyctl tool
WORKDIR /opt/netlifyctl
RUN wget -qO- 'https://cli.netlify.com/download/latest/linux' | tar xz
ENV PATH "/opt/netlifyctl:${PATH}"
WORKDIR /opt/app