gordony2028 commited on
Commit
4d69c8e
·
verified ·
1 Parent(s): 568a62c

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +56 -0
Dockerfile ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:20-slim
2
+
3
+ # Install necessary tools
4
+ RUN apt-get update && apt-get install -y \
5
+ postgresql-client \
6
+ python3 \
7
+ python3-pip \
8
+ curl \
9
+ net-tools \
10
+ ca-certificates \
11
+ && apt-get clean
12
+
13
+ # Install timezone data (for Debian/Ubuntu based images)
14
+ RUN apt-get update && apt-get install -y tzdata && rm -rf /var/lib/apt/lists/*
15
+
16
+ # Set timezone multiple ways to ensure it takes
17
+ ENV TZ=Australia/Melbourne
18
+ RUN ln -snf /usr/share/zoneinfo/Australia/Melbourne /etc/localtime
19
+ RUN echo "Australia/Melbourne" > /etc/timezone
20
+
21
+ # Verify timezone is set (optional - for debugging)
22
+ RUN date
23
+
24
+
25
+ # Set working directory
26
+ WORKDIR /app
27
+
28
+ # Install n8n globally
29
+ RUN npm install -g n8n
30
+
31
+ # Debug - check if timezone is set correctly
32
+ RUN echo "Timezone set to:" && cat /etc/timezone
33
+ RUN echo "Current time:" && date
34
+
35
+ # Set environment variables (non-sensitive only)
36
+ ENV DB_TYPE=postgresdb
37
+ ENV DB_POSTGRESDB_HOST=aws-0-ap-southeast-2.pooler.supabase.com
38
+ ENV DB_POSTGRESDB_PORT=5432
39
+ ENV DB_POSTGRESDB_USER=postgres.dcyzjvvdpxsewlupdkap
40
+ ENV DB_POSTGRESDB_DATABASE=postgres
41
+ ENV N8N_USER_MANAGEMENT_DISABLED=true
42
+ ENV N8N_BASIC_AUTH_ACTIVE=true
43
+ ENV NBN_BASIC_AUTH_USER=admin
44
+ ENV N8N_PORT=7860
45
+ ENV N8N_HOST=0.0.0.0
46
+ ENV N8N_RUNNERS_ENABLED=true
47
+ ENV WEBHOOK_URL=http://gordony2028.automation.hf.space
48
+
49
+ # Hugging Face listens on this port
50
+ EXPOSE 7860
51
+
52
+ # Copy entry script
53
+ COPY start.sh /start.sh
54
+ RUN chmod +x /start.sh
55
+
56
+ CMD ["/start.sh"]