-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (31 loc) · 1.05 KB
/
Dockerfile
File metadata and controls
31 lines (31 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM node:22-bullseye-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
python \
yarn \
dumb-init \
&& rm -rf /var/lib/apt/lists/*
ENV NODE_ENV production
WORKDIR /home/node/app
COPY --chown=node . .
RUN yarn add graphql @graphql-mesh/runtime \
@graphql-mesh/cli \
@graphql-mesh/graphql \
@graphql-mesh/openapi \
@graphql-mesh/json-schema \
@graphql-mesh/transform-rename \
@graphql-mesh/transform-prefix \
@graphql-mesh/transform-cache \
@graphql-mesh/transform-snapshot \
@graphql-mesh/transform-mock \
@graphql-mesh/transform-resolvers-composition \
@graphql-mesh/transform-federation \
@graphql-mesh/transform-filter-schema \
@graphql-mesh/transform-naming-convention \
@graphql-mesh/transform-type-merging \
@graphql-mesh/merger-federation \
@graphql-mesh/postgraphile \
@graphile-contrib/pg-many-to-many \
&& yarn install --frozen-lockfile --immutable --immutable-cache --check-cache --production && yarn cache clean \
&& chown -R node /home/node/app
USER node
CMD ["dumb-init", "npm", "start"]