2018-12-06 15:28:35 -08:00
|
|
|
FROM node:10 as builder
|
2018-07-25 12:53:33 -06:00
|
|
|
|
|
|
|
WORKDIR /app/
|
|
|
|
|
|
|
|
COPY package.json yarn.lock /app/
|
|
|
|
RUN yarn install --frozen-lockfile
|
2017-10-09 22:38:44 -06:00
|
|
|
|
2018-12-11 18:07:18 -08:00
|
|
|
COPY tsconfig.json tslint.json paths.js /app/
|
2018-12-11 20:19:02 -08:00
|
|
|
COPY bin/ /app/bin
|
2018-12-06 15:28:35 -08:00
|
|
|
COPY client/ /app/client
|
2018-07-25 12:53:33 -06:00
|
|
|
COPY common/ /app/common
|
|
|
|
COPY server/ /app/server
|
|
|
|
|
|
|
|
RUN yarn build
|
|
|
|
|
|
|
|
RUN yarn install --frozen-lockfile --production
|
|
|
|
|
2018-12-06 15:28:35 -08:00
|
|
|
FROM node:10
|
2017-11-01 00:28:47 -06:00
|
|
|
|
2017-10-09 22:38:44 -06:00
|
|
|
WORKDIR /app/
|
|
|
|
|
2018-12-11 20:19:02 -08:00
|
|
|
COPY --from=builder /app/package.json /app/yarn.lock /app/paths.js ./
|
2018-07-25 12:53:33 -06:00
|
|
|
COPY --from=builder /app/node_modules ./node_modules
|
2018-12-11 20:19:02 -08:00
|
|
|
COPY --from=builder /app/bin ./bin
|
2018-07-25 12:53:33 -06:00
|
|
|
COPY --from=builder /app/dist ./dist
|
|
|
|
COPY --from=builder /app/public ./public
|
2018-05-28 20:22:18 -06:00
|
|
|
|
2017-10-09 22:38:44 -06:00
|
|
|
EXPOSE 8080
|
2018-12-11 20:19:02 -08:00
|
|
|
ENTRYPOINT [ "node", ".", "serve"]
|