mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:51:58 +03: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.*
|
||||
.git
|
||||
.github
|
||||
!.github/scripts
|
||||
*.tsbuildinfo
|
||||
packages/cli/dist/**/e2e.*
|
||||
docker/compose
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user