1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-12-25 05:02:21 +03:00

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.* packages/**/*.test.*
.git .git
.github .github
!.github/scripts
*.tsbuildinfo *.tsbuildinfo
packages/cli/dist/**/e2e.* packages/cli/dist/**/e2e.*
docker/compose docker/compose

View File

@ -1,7 +1,7 @@
ARG NODE_VERSION=20 ARG NODE_VERSION=20
# 1. Create an image to build n8n # 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 # Build the application from source
WORKDIR /src WORKDIR /src
@ -11,7 +11,7 @@ RUN pnpm build
# Delete all dev dependencies # Delete all dev dependencies
RUN jq 'del(.pnpm.patchedDependencies)' package.json > package.json.tmp; mv package.json.tmp package.json 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 # 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 RUN find . -type f -name "*.ts" -o -name "*.js.map" -o -name "*.vue" -o -name "tsconfig.json" -o -name "*.tsbuildinfo" | xargs rm -rf