graphql-engine/community/sample-apps/realtime-chat/Dockerfile
hasura-bot c5cedbd84b community: update sample realtime-chat dependencies
GITHUB_PR_NUMBER: 7844
GITHUB_PR_URL: https://github.com/hasura/graphql-engine/pull/7844

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2964
Co-authored-by: arjunyel <11153289+arjunyel@users.noreply.github.com>
GitOrigin-RevId: 34c4054e24fc1fa6c44c6c8a84db5b0d887faddb
2021-12-07 13:15:03 +00:00

14 lines
251 B
Docker

FROM node:16 as builder
ENV NODE_ENV=PRODUCTION
WORKDIR /app
COPY package.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"]