docker-streaming-server/stream-player/Dockerfile

14 lines
303 B
Docker
Raw Normal View History

2020-09-20 01:09:20 +02:00
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/