ci: Fix custom docker images (no-changelog)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-07-15 15:48:23 +02:00
parent 89d1782d3b
commit 0b021ab6a5
No known key found for this signature in database
GPG key ID: 9300FF7CDEA1FBAA
2 changed files with 3 additions and 2 deletions

View file

@ -10,6 +10,7 @@ packages/**/.turbo
packages/**/*.test.*
.git
.github
!.github/scripts
*.tsbuildinfo
packages/cli/dist/**/e2e.*
docker/compose

View file

@ -1,7 +1,7 @@
ARG NODE_VERSION=20
# 1. Create an image to build n8n
FROM --platform=linux/amd64 n8nio/base:${NODE_VERSION} as builder
FROM --platform=linux/amd64 n8nio/base:${NODE_VERSION} AS builder
# Build the application from source
WORKDIR /src
@ -11,7 +11,7 @@ RUN pnpm build
# Delete all dev dependencies
RUN jq 'del(.pnpm.patchedDependencies)' package.json > package.json.tmp; mv package.json.tmp package.json
RUN node scripts/trim-fe-packageJson.js
RUN node .github/scripts/trim-fe-packageJson.js
# Delete any source code, source-mapping, or typings
RUN find . -type f -name "*.ts" -o -name "*.js.map" -o -name "*.vue" -o -name "tsconfig.json" -o -name "*.tsbuildinfo" | xargs rm -rf