git.s-ol.nu leap-finger-scan / master Dockerfile
master

Tree @master (Download .tar.gz)

Dockerfile @masterraw · history · blame

FROM node AS build-env
WORKDIR /build
COPY package.json /build/
RUN npm i
COPY . /build/
RUN npm run build

FROM nginx:alpine
COPY --from=build-env /build/dist /usr/share/nginx/html
COPY --from=build-env /build/examples /usr/share/nginx/html/examples
RUN chmod 555 -R /usr/share/nginx/html