forked from usgs/wdfn-blog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (21 loc) · 803 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM debian:stretch-slim
RUN apt-get update
RUN apt-get install -y \
build-essential \
curl \
gnupg
# Install Hugo from tar distribution to /usr/local/bin
RUN curl --silent --location https://github.com/gohugoio/hugo/releases/download/v0.92.1/hugo_0.92.1_Linux-64bit.tar.gz > hugo.tar.gz
RUN tar xzf hugo.tar.gz -C /usr/local/bin
# Install node.js 16.x (LTS at time of writing) from official package.
RUN curl --silent --location https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get -y update
RUN apt-get install -y nodejs
COPY . /src
WORKDIR /src
ARG HUGO_BASEURL="http://localhost:1313"
ENV HUGO_BASEURL ${BUILD_COMMAND}
# The entrypoint script supports commands "build", "server", or pass-through to sh.
ENTRYPOINT ["/src/entrypoint.sh"]
# Default operation
CMD ["build"]