graphql-engine/community/sample-apps/streaming-subscriptions-chat/Dockerfile
hasura-bot bfe4c48245 community: add streaming-subscription-chat example
GITHUB_PR_NUMBER: 8588
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/8588

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4731
Co-authored-by: arjunyel <11153289+arjunyel@users.noreply.github.com>
GitOrigin-RevId: 0db7eabcc8a05a2c98f50cd767c38757d534d648
2022-06-28 14:26:08 +00:00

15 lines
277 B
Docker

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