mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
d896cc4d95
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/4689 Co-authored-by: Vishnu Bharathi <4211715+scriptnull@users.noreply.github.com> GitOrigin-RevId: 9dc6a2e373b3d7ab0bdce7ddcd7b7e6e5b1dc498
22 lines
536 B
Docker
22 lines
536 B
Docker
FROM node:16-alpine
|
|
|
|
WORKDIR /app
|
|
COPY package.json .
|
|
COPY package-lock.json .
|
|
|
|
RUN npm ci
|
|
|
|
COPY tsconfig.json .
|
|
COPY 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" ]
|