sprinklers3/Dockerfile

33 lines
593 B
Docker
Raw Normal View History

2018-07-25 12:53:33 -06:00
FROM node:alpine as builder
RUN apk add yarn \
python \
make \
g++
WORKDIR /app/
COPY package.json yarn.lock /app/
RUN yarn install --frozen-lockfile
2017-10-09 22:38:44 -06:00
2018-07-25 12:53:33 -06:00
COPY tslint.json /app
COPY app/ /app/app
COPY common/ /app/common
COPY server/ /app/server
RUN yarn build
RUN yarn install --frozen-lockfile --production
FROM node:alpine
2017-11-01 00:28:47 -06:00
2017-10-09 22:38:44 -06:00
WORKDIR /app/
2018-07-25 12:53:33 -06:00
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
2018-05-28 20:22:18 -06:00
2017-10-09 22:38:44 -06:00
EXPOSE 8080
2017-11-01 00:28:47 -06:00
ENTRYPOINT [ "npm", "run", "start" ]