musarehmani100 commited on
Commit
672f394
1 Parent(s): f3bafdb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -4
Dockerfile CHANGED
@@ -2,12 +2,11 @@ ARG NODE_VERSION=18
2
  FROM n8nio/base:${NODE_VERSION}
3
 
4
  ARG N8N_VERSION=1.39.0
 
 
5
  ENV N8N_VERSION=${N8N_VERSION}
6
  ENV NODE_ENV=production
7
  ENV N8N_RELEASE_TYPE=stable
8
-
9
- WORKDIR /app
10
-
11
  RUN set -eux; \
12
  npm install -g --omit=dev n8n@${N8N_VERSION} --ignore-scripts && \
13
  npm rebuild --prefix=/usr/local/lib/node_modules/n8n sqlite3 && \
@@ -17,7 +16,7 @@ RUN set -eux; \
17
  find /usr/local/lib/node_modules/n8n -type f -name "*.ts" -o -name "*.js.map" -o -name "*.vue" | xargs rm -f && \
18
  rm -rf /root/.npm
19
 
20
- COPY docker-entrypoint.sh /
21
 
22
  RUN \
23
  mkdir .n8n && \
 
2
  FROM n8nio/base:${NODE_VERSION}
3
 
4
  ARG N8N_VERSION=1.39.0
5
+ RUN if [ -z "$N8N_VERSION" ] ; then echo "The N8N_VERSION argument is missing!" ; exit 1; fi
6
+
7
  ENV N8N_VERSION=${N8N_VERSION}
8
  ENV NODE_ENV=production
9
  ENV N8N_RELEASE_TYPE=stable
 
 
 
10
  RUN set -eux; \
11
  npm install -g --omit=dev n8n@${N8N_VERSION} --ignore-scripts && \
12
  npm rebuild --prefix=/usr/local/lib/node_modules/n8n sqlite3 && \
 
16
  find /usr/local/lib/node_modules/n8n -type f -name "*.ts" -o -name "*.js.map" -o -name "*.vue" | xargs rm -f && \
17
  rm -rf /root/.npm
18
 
19
+ COPY --chown=user docker-entrypoint.sh /
20
 
21
  RUN \
22
  mkdir .n8n && \