-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (19 loc) · 865 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
FROM node:8.11.2-alpine
ADD Apkfile /
RUN apk update && apk add --update $(cat /Apkfile)
RUN wget https://yarnpkg.com/downloads/1.7.0/yarn-v1.7.0.tar.gz https://yarnpkg.com/downloads/1.7.0/yarn-v1.7.0.tar.gz.asc && \
gpg --batch --verify yarn-v1.7.0.tar.gz.asc yarn-v1.7.0.tar.gz && \
tar zvxf yarn-v1.7.0.tar.gz -C /opt/ && \
rm /usr/local/bin/yarn /usr/local/bin/yarnpkg && \
ln -s /opt/yarn-v1.7.0/bin/yarn /usr/local/bin/yarn && \
ln -s /opt/yarn-v1.7.0/bin/yarnpkg /usr/local/bin/yarnpkg && \
rm yarn-v1.7.0.tar.gz.asc yarn-v1.7.0.tar.gz
WORKDIR /opt/fitbaw-node-service/
ADD package.json yarn.lock ./
RUN yarn install --production=false
ADD entrypoint.sh /
ADD . .
EXPOSE 8080
HEALTHCHECK --start-period=20s CMD curl --fail --max-time 10 http://localhost:8080/health
ENTRYPOINT ["/entrypoint.sh"]
CMD ["yarn", "run", "start"]