You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

27 lines
553 B

FROM node:10 as builder
WORKDIR /app/
COPY package.json yarn.lock /app/
RUN yarn install --frozen-lockfile
COPY tsconfig.json tslint.json paths.js /app/
COPY client/ /app/client
COPY common/ /app/common
COPY server/ /app/server
RUN yarn build
RUN yarn install --frozen-lockfile --production
FROM node:10
WORKDIR /app/
COPY --from=builder /app/package.json /app/yarn.lock ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/public ./public
EXPOSE 8080
ENTRYPOINT [ "node", "." ]