mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
bfe4c48245
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
15 lines
277 B
Docker
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"] |