fix: Docker build in CI (#8312)
* Fix Docker build CI * Bump nginx-alpine version to 1.27
This commit is contained in:
parent
b87925d253
commit
8d530cf102
|
@ -8,6 +8,7 @@
|
||||||
!package.json
|
!package.json
|
||||||
!public/
|
!public/
|
||||||
!packages/
|
!packages/
|
||||||
|
!scripts/
|
||||||
!tsconfig.json
|
!tsconfig.json
|
||||||
!yarn.lock
|
!yarn.lock
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ ARG NODE_ENV=production
|
||||||
|
|
||||||
RUN yarn build:app:docker
|
RUN yarn build:app:docker
|
||||||
|
|
||||||
FROM nginx:1.24-alpine
|
FROM nginx:1.27-alpine
|
||||||
|
|
||||||
COPY --from=build /opt/node_app/excalidraw-app/build /usr/share/nginx/html
|
COPY --from=build /opt/node_app/excalidraw-app/build /usr/share/nginx/html
|
||||||
|
|
||||||
|
|
|
@ -26,10 +26,10 @@ export default defineConfig({
|
||||||
assetFileNames(chunkInfo) {
|
assetFileNames(chunkInfo) {
|
||||||
if (chunkInfo?.name?.endsWith(".woff2")) {
|
if (chunkInfo?.name?.endsWith(".woff2")) {
|
||||||
// put on root so we are flexible about the CDN path
|
// put on root so we are flexible about the CDN path
|
||||||
return '[name]-[hash][extname]';
|
return "[name]-[hash][extname]";
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'assets/[name]-[hash][extname]';
|
return "assets/[name]-[hash][extname]";
|
||||||
},
|
},
|
||||||
// Creating separate chunk for locales except for en and percentages.json so they
|
// Creating separate chunk for locales except for en and percentages.json so they
|
||||||
// can be cached at runtime and not merged with
|
// can be cached at runtime and not merged with
|
||||||
|
@ -44,7 +44,7 @@ export default defineConfig({
|
||||||
// Taking the substring after "locales/"
|
// Taking the substring after "locales/"
|
||||||
return `locales/${id.substring(index + 8)}`;
|
return `locales/${id.substring(index + 8)}`;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
sourcemap: true,
|
sourcemap: true,
|
||||||
|
|
|
@ -2,9 +2,8 @@ import { defineConfig } from "vitest/config";
|
||||||
import { woff2BrowserPlugin } from "./scripts/woff2/woff2-vite-plugins";
|
import { woff2BrowserPlugin } from "./scripts/woff2/woff2-vite-plugins";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [
|
// @ts-ignore
|
||||||
woff2BrowserPlugin(),
|
plugins: [woff2BrowserPlugin()],
|
||||||
],
|
|
||||||
test: {
|
test: {
|
||||||
setupFiles: ["./setupTests.ts"],
|
setupFiles: ["./setupTests.ts"],
|
||||||
globals: true,
|
globals: true,
|
||||||
|
|
Loading…
Reference in New Issue