graphql-engine/community/sample-apps/realtime-poll/Dockerfile
2019-01-17 15:57:28 +05:30

14 lines
261 B
Docker

FROM node:carbon as builder
ENV NODE_ENV=PRODUCTION
WORKDIR /app
COPY package.json ./
RUN npm install --production
COPY . .
RUN npm run build
FROM node:8-alpine
RUN npm -g install serve
WORKDIR /app
COPY --from=builder /app/build .
CMD ["serve", "-p", "8080"]