docker-streaming-server/stream-player/Dockerfile

14 lines
303 B
Docker

FROM node:current-alpine AS builder
COPY package.json package-lock.json webpack.config.js /build/
COPY index.html /build/dist/
COPY src /build/src/
WORKDIR /build
RUN npm install && npm run build
FROM nginx:stable-alpine
COPY --from=builder --chown=nobody:nobody /build/dist /usr/share/nginx/html/