forked from nutomic/joinpeertube
27 lines
460 B
Docker
27 lines
460 B
Docker
FROM node:13-alpine as build-stage
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json .
|
|
COPY yarn.lock .
|
|
|
|
RUN apk add python2 make g++
|
|
|
|
RUN yarn install --pure-lockfile \
|
|
&& yarn cache clean
|
|
|
|
COPY src/ src/
|
|
COPY public/ public/
|
|
COPY .eslintrc.js .
|
|
COPY .babelrc .
|
|
COPY Makefile .
|
|
COPY vue.config.js .
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
RUN yarn run build
|
|
|
|
FROM nginx as production-stage
|
|
RUN mkdir /app
|
|
COPY --from=build-stage /app/dist /app
|
|
COPY docker/nginx.conf /etc/nginx/nginx.conf
|