graphql-engine/community/sample-apps/react-apollo-todo/Dockerfile
2019-01-17 15:57:28 +05:30

14 lines
267 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", "-s", "-p", "8080"]