-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
36 lines (25 loc) · 930 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
31
32
33
34
35
36
# Node.js 8.x LTS on Debian Stretch Linux
# see: https://github.com/nodejs/LTS
# see: https://hub.docker.com/_/node/
FROM node:12.14.1-stretch
LABEL MAINTAINER="Jacob Henderson <[email protected]>"
# The `node` user and its home dir is provided by
# the base image. Create a subdir where app code lives.
RUN mkdir /home/node/app
WORKDIR /home/node/app
COPY package.json yarn.lock server.js /home/node/app/
RUN yarn policies set-version 1.22.10
RUN yarn
RUN mkdir -p /home/node/app/scripts
COPY ./scripts/*.sh /home/node/app/scripts/
RUN mkdir -p /home/node/app/lib
COPY ./lib/*.js /home/node/app/lib/
RUN mkdir -p /home/node/app/lib/endpoints
COPY ./lib/endpoints/*.js /home/node/app/lib/endpoints/
RUN mkdir -p /home/node/app/lib/models
COPY ./lib/models/*.js /home/node/app/lib/models/
RUN mkdir -p /root/.lnd
RUN mkdir -p /root/.chainpoint/gateway/data/rocksdb
RUN chmod -R 777 /root
EXPOSE 80
CMD ["yarn", "start"]