modernization; add newlines and link catches to relevant places.

This commit is contained in:
41666 2018-11-29 06:20:57 -06:00
parent 5a1fc526db
commit 005bc44bc1
11 changed files with 254 additions and 186 deletions

View file

@ -1,8 +1,13 @@
FROM node:10 AS builder
ENV NODE_ENV production
RUN npm i -g yarn
COPY . /src
RUN cd /src/UI && yarn && yarn build && cd /src/Server && yarn && mkdir public && mv /src/UI/build/* public
# ENV NODE_ENV production
COPY ./UI /src/UI
RUN cd /src/UI && yarn && yarn build
COPY ./Server /src/Server
RUN cd /src/Server && yarn
RUN cp -r /src/UI/build /src/Server/public
FROM mhart/alpine-node:10
ENV NODE_ENV production