@@ -9,7 +9,7 @@ RUN apk add --no-cache libc6-compat
99RUN apk update
1010# Set working directory
1111WORKDIR /app
12- RUN npm install --global turbo
12+ RUN npm install --global turbo@1
1313COPY . .
1414RUN turbo prune --scope=@asyncapi/studio --docker
1515
@@ -21,20 +21,20 @@ ARG BASE_URL_PLACEHOLDER
2121RUN apk add --no-cache libc6-compat
2222RUN apk update
2323WORKDIR /app
24-
24+ RUN npm install --global pnpm@latest-10
25+
2526# First install the dependencies (as they change less often)
2627
2728COPY .gitignore .gitignore
2829COPY --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+
3232# Build the project
3333COPY --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
3535
3636
37- FROM docker.io/library/nginx:1.25.5-alpine as runtime
37+ FROM docker.io/library/nginx:1.25.5-alpine AS runtime
3838
3939ARG BASE_URL_PLACEHOLDER
4040# The base Nginx image automatically executes all shell scripts
@@ -49,4 +49,4 @@ COPY --from=installer /app/apps/studio/build /usr/share/nginx/html/
4949# is configured we assume the application is running at '/'.
5050RUN echo "find /usr/share/nginx/html/ -type f -print0 | xargs -0 sed -i \" s|${BASE_URL_PLACEHOLDER}|\$ {BASE_URL}|g\" " > $ENTRYPOINT_SCRIPT && chmod +x $ENTRYPOINT_SCRIPT
5151
52- FROM runtime
52+ FROM runtime
0 commit comments