Fix build failure.
[e-mobility-charging-stations-simulator.git] / docker / Dockerfile
... / ...
CommitLineData
1FROM node:alpine as builder
2
3WORKDIR /usr/builder
4
5COPY package.json package-lock.json ./
6
7RUN npm set progress=false && npm config set depth 0 && npm cache clean --force
8RUN npm install
9RUN npm run build
10
11FROM node:alpine
12
13WORKDIR /usr/app
14
15COPY --from=builder /usr/builder/node_modules ./node_modules
16COPY NOTICE LICENSE ./
17COPY dist ./dist
18COPY *.json ./
19COPY docker/config.json ./dist/assets/config.json
20COPY docker/autoconfig.sh /autoconfig.sh
21RUN chmod +x /autoconfig.sh
22
23#CMD ["node", "dist/start.js"]
24CMD /autoconfig.sh && node -r source-map-support/register dist/start.js