sivakumar330 commited on
Commit
737dd58
·
verified ·
1 Parent(s): 1261cd3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -37
Dockerfile CHANGED
@@ -1,44 +1,19 @@
1
- FROM node:22-alpine
2
 
3
  USER root
4
-
5
- RUN apk add --no-cache \
6
- ca-certificates \
7
- curl \
8
- openssl \
9
- git \
10
- python3 \
11
- py3-pip \
12
- make \
13
- g++ \
14
- build-base \
15
- cairo-dev \
16
- pango-dev \
17
- chromium \
18
- postgresql-client \
19
- yt-dlp
20
-
21
- RUN update-ca-certificates
22
-
23
- ENV NODE_EXTRA_CA_CERTS=/etc/ssl/certs/ca-certificates.crt
24
-
25
- ENV N8N_HOST=0.0.0.0
26
  ENV N8N_PORT=7860
27
- ENV N8N_PROTOCOL=http
28
-
29
- ENV N8N_RUNNERS_ENABLED=true
30
- ENV NODE_FUNCTION_ALLOW_BUILTIN=*
31
- ENV NODE_FUNCTION_ALLOW_EXTERNAL=*
32
-
33
- ENV N8N_SECURE_COOKIE=false
34
-
35
- RUN npm install -g n8n@2.27.4
36
-
37
- RUN mkdir -p /root/.n8n
38
- RUN chmod -R 777 /root/.n8n
39
 
40
- WORKDIR /data
 
 
 
41
 
 
42
  EXPOSE 7860
43
-
44
  CMD ["n8n", "start"]
 
1
+ FROM n8nio/n8n:latest
2
 
3
  USER root
4
+ # HF Spaces port 7860 use pannum
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  ENV N8N_PORT=7860
6
+ ENV N8N_HOST=0.0.0.0
7
+ ENV N8N_PROTOCOL=https
8
+ ENV GENERIC_TIMEZONE=Asia/Kolkata
9
+ ENV TZ=Asia/Kolkata
10
+ ENV N8N_PROXY_HOPS=1
 
 
 
 
 
 
 
11
 
12
+ # Database (SQL - Postgres)
13
+ ENV DB_TYPE=postgresdb
14
+ ENV DB_POSTGRESDB_SSL_ENABLED=true
15
+ ENV DB_POSTGRESDB_SSL_REJECT_UNAUTHORIZED=false
16
 
17
+ USER node
18
  EXPOSE 7860
 
19
  CMD ["n8n", "start"]