File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ARG NODE_VERSION=20
2
2
ARG NODE_IMAGE=public.ecr.aws/docker/library/node:${NODE_VERSION}-slim
3
3
ARG EDGEDB_IMAGE=ghcr.io/edgedb/edgedb:5
4
4
5
- FROM ${NODE_IMAGE} as base-runtime
5
+ FROM ${NODE_IMAGE} AS base-runtime
6
6
7
7
# Install these native packages
8
8
RUN apt-get update \
@@ -19,10 +19,17 @@ RUN apt-get update \
19
19
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.edgedb.com | sh -s -- -y --no-modify-path \
20
20
&& mv /root/.local/bin/edgedb /usr/local/bin/edgedb
21
21
22
+
23
+ # Apollo Rover CLI
24
+ RUN curl -sSL https://rover.apollo.dev/nix/latest | sh
25
+
26
+ # GraphQL Hive CLI
27
+ RUN curl -sSL https://graphql-hive.com/install.sh | sh
28
+
22
29
# Enable yarn via corepack
23
30
RUN corepack enable
24
31
25
- FROM ${EDGEDB_IMAGE} as builder
32
+ FROM ${EDGEDB_IMAGE} AS builder
26
33
27
34
# region Install NodeJS
28
35
ARG NODE_VERSION
93
100
# Build server
94
101
RUN yarn build
95
102
103
+ # Generate GraphQL schema
104
+ RUN yarn start -- --gen-schema
105
+
96
106
# Remove non-production files
97
107
RUN rm -rf nest-cli.json tsconfig* test
98
108
# Remove dev dependencies
99
109
RUN yarn workspaces focus --all --production
100
110
# Remove yarn cache to reduce image size
101
111
RUN yarn cache clean --all
102
112
103
- FROM base-runtime as runtime
113
+ FROM base-runtime AS runtime
104
114
105
115
WORKDIR /opt/cord-api
106
116
You can’t perform that action at this time.
0 commit comments