Commit | Line | Data |
---|---|---|
9ae9812f | 1 | FROM node:alpine as builder |
7dde0b73 JB |
2 | |
3 | WORKDIR /usr/builder | |
4 | ||
5 | COPY package.json package-lock.json ./ | |
6 | ||
7 | RUN npm set progress=false && npm config set depth 0 && npm cache clean --force | |
8 | RUN npm install | |
9 | ||
9ae9812f | 10 | FROM node:alpine |
7dde0b73 JB |
11 | |
12 | WORKDIR /usr/app | |
13 | ||
14 | COPY --from=builder /usr/builder/node_modules ./node_modules | |
15 | COPY NOTICE LICENSE ./ | |
16 | COPY src ./src | |
17 | COPY *.json ./ | |
4d127f7f | 18 | COPY docker/config.json ./src/assets/config.json |
7dde0b73 JB |
19 | COPY docker/autoconfig.sh /autoconfig.sh |
20 | RUN chmod +x /autoconfig.sh | |
21 | ||
22 | #CMD ["node", "src/index.js"] | |
23 | CMD /autoconfig.sh && node src/index.js |