File tree Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Expand file tree Collapse file tree 4 files changed +15
-9
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @asyncapi/studio " : patch
3
+ ---
4
+
5
+ Fix Docker build for AsyncAPI Studio
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ RUN apk add --no-cache libc6-compat
9
9
RUN apk update
10
10
# Set working directory
11
11
WORKDIR /app
12
- RUN npm install --global turbo
12
+ RUN npm install --global turbo@1
13
13
COPY . .
14
14
RUN turbo prune --scope=@asyncapi/studio --docker
15
15
@@ -21,17 +21,17 @@ ARG BASE_URL_PLACEHOLDER
21
21
RUN apk add --no-cache libc6-compat
22
22
RUN apk update
23
23
WORKDIR /app
24
-
24
+ RUN npm install --global pnpm@latest-10
25
+
25
26
# First install the dependencies (as they change less often)
26
27
27
28
COPY .gitignore .gitignore
28
29
COPY --from=builder /app/out/json/ .
29
- COPY --from=builder /app/out/package-lock.json ./package-lock.json
30
- RUN PUPPETEER_SKIP_DOWNLOAD=true npm ci
31
-
30
+ RUN PUPPETEER_SKIP_DOWNLOAD=true pnpm install
31
+
32
32
# Build the project
33
33
COPY --from=builder /app/out/full/ .
34
- RUN PUBLIC_URL=${BASE_URL_PLACEHOLDER} npm run build:studio
34
+ RUN PUBLIC_URL=${BASE_URL_PLACEHOLDER} NEXT_CONFIG_OUTPUT=export pnpm run build:studio
35
35
36
36
37
37
FROM docker.io/library/nginx:1.25.5-alpine as runtime
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ const nextConfig = {
36
36
37
37
return config ;
38
38
} ,
39
- output : 'standalone' ,
39
+ output : process . env . NEXT_CONFIG_OUTPUT ?? 'standalone' ,
40
40
distDir : 'build'
41
41
} ;
42
42
43
- module . exports = nextConfig ;
43
+ module . exports = nextConfig ;
Original file line number Diff line number Diff line change 28
28
" ./src/*" ,
29
29
" ./public/*"
30
30
]
31
- }
31
+ },
32
+ "types" : [" cypress" ]
32
33
},
33
34
"include" : [
34
35
" next-env.d.ts" ,
You can’t perform that action at this time.
0 commit comments