mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
ci: Fix custom docker images (no-changelog)
This commit is contained in:
parent
89d1782d3b
commit
0b021ab6a5
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue