git.s-ol.nu leap-finger-scan / 29384e8
dockerize s-ol 2 years ago
3 changed file(s) with 20 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 node_modules
1 dist
2 Dockerfile
00 node_modules
1 server.comp.js
2 .DS_Store
3 dist
4 *.log
5 coverage
6 .idea
7 .vagrant
0 FROM node AS build-env
1 WORKDIR /build
2 COPY package.json /build/
3 RUN npm i
4 COPY . /build/
5 RUN npm run build
6
7 FROM nginx:alpine
8 COPY --from=build-env /build/dist /usr/share/nginx/html
9 RUN chmod 555 -R /usr/share/nginx/html