graphql-engine/dc-agents/Dockerfile-reference
Daniel Harvey 63ed52ef7e tests: more through DC agent healthchecks
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6478
GitOrigin-RevId: 460317dfcc3f3d085cbe08877cd11d49a3ad7c07
2022-10-26 17:10:44 +00:00

28 lines
679 B
Plaintext

FROM node:16-alpine
RUN apk update && apk add curl
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" ]