-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
27 lines (21 loc) · 889 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
#§ 'FROM node:' + data.config.npm.node.version + '-slim'
FROM node:10.15-slim
LABEL maintainer="Jędrzej Lewandowski <jedrzejblew@gmail.com>"
WORKDIR /app
ADD . /app
RUN bash -c 'set -o pipefail && \
( \
if [[ "$(node --version)" = "$(cat .nvmrc)"* ]]; then \
echo "Node version correct"; else echo "Node version in .nvmrc is different. Please update Dockerfile" && exit 1; fi \
) \
&& npm install \
&& npm run build \
&& npm install -g'
CMD ["wise daemon"]
HEALTHCHECK --interval=500s --timeout=15s --start-period=500s --retries=2 CMD [ "node", "container-healthcheck.js" ]
##§ '\n' + data.config.docker.generateDockerfileFrontMatter(data) + '\n' §##
LABEL maintainer="The Wise Team (https://wise-team.io/) <contact@wiseteam.io>"
LABEL vote.wise.wise-version="3.1.1"
LABEL vote.wise.license="MIT"
LABEL vote.wise.repository="steem-wise-cli"
##§ §.##