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