pidgin/nest
Clone
Summary
Browse
Changes
Graph
Move build info into a header comment.
2019-08-19, Elliott Sales de Andrade
c3a002e9a2b4
Move build info into a header comment.
No user is ever going to read this, and it's doubtful that any developer
will either once we're sure that deployment is working correctly.
Also, dropped the Hugo version from the comment, since that's part of
the
tags.
#####################################################################
# run the hugo build
#####################################################################
FROM
debian:buster
as
hugo-build
RUN
set
-ex
&&
\
apt-get
update
&&
\
apt-get
install
-y
hugo
&&
\
apt-get
clean
&&
\
rm
-rf
/var/lib/apt/lists
ARG
BUILD_NAME
ARG
BUILD_DATE
ARG
COMMIT
COPY
hugo
/nest/hugo
RUN
hugo
-s
/nest/hugo
-d
/nest/public
#####################################################################
# setup up our node environment
#####################################################################
FROM
node:10-stretch-slim
as
node-build
WORKDIR
/nest/
COPY
package-lock.json
package.json
./
RUN
npm
ci
--production
&&
\
npm
cache
clean
--force
COPY
tools
./tools
COPY
--from
=
hugo-build
/nest/public
public
RUN
node
tools/pre-prod.js
#####################################################################
# finally package everything up with rwgrim/goserve
#####################################################################
FROM
rwgrim/goserve
COPY
--from
=
node-build
/nest/public
/html/
EXPOSE
3000/tcp