mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
97b0e4c591
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/5596 GitOrigin-RevId: c5da90eb4e61a9d9a5ddc34f7bfbaa2d00c698b8
25 lines
646 B
Plaintext
25 lines
646 B
Plaintext
FROM node:16-alpine
|
|
|
|
WORKDIR /app
|
|
COPY package.json .
|
|
COPY package-lock.json .
|
|
COPY dc-api-types dc-api-types
|
|
WORKDIR /app/reference
|
|
COPY ./reference/package.json .
|
|
|
|
RUN npm ci
|
|
|
|
COPY ./reference/tsconfig.json .
|
|
COPY ./reference/src src
|
|
|
|
# This is just to ensure everything compiles ahead of time.
|
|
# We'll actually run using ts-node to ensure we get TypesScript
|
|
# stack traces if something fails at runtime.
|
|
RUN npm run typecheck
|
|
|
|
EXPOSE 8100
|
|
|
|
# We don't bother doing typechecking when we run (only TS->JS transpiling)
|
|
# because we checked it above already. This uses less memory at runtime.
|
|
CMD [ "npm", "run", "--silent", "start-no-typecheck" ]
|