-
Notifications
You must be signed in to change notification settings - Fork 54
Expand file tree
/
Copy pathdockerfile
More file actions
78 lines (71 loc) · 1.49 KB
/
Copy pathdockerfile
File metadata and controls
78 lines (71 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Use the official n8n image as base
FROM docker.n8n.io/n8nio/n8n:1.79.3
# Install WebKit dependencies
USER root
RUN apt-get update && apt-get install -y --no-install-recommends \
libwoff1 \
libopus0 \
libwebp6 \
libwebpdemux2 \
libenchant1c2a \
libgudev-1.0-0 \
libsecret-1-0 \
libhyphen0 \
libgdk-pixbuf2.0-0 \
libegl1 \
libnotify4 \
libxslt1.1 \
libevent-2.1-7 \
libgles2 \
libvpx6 \
libxcomposite1 \
libatk-bridge2.0-0 \
libatk1.0-0 \
libatspi2.0-0 \
libcairo2 \
libepoxy0 \
libfontconfig1 \
libfreetype6 \
libgbm1 \
libglib2.0-0 \
libharfbuzz0b \
libicu66 \
libjpeg8 \
libpango-1.0-0 \
libpangocairo-1.0-0 \
libpangoft2-1.0-0 \
libpixman-1-0 \
libpng16-16 \
libwayland-client0 \
libwayland-egl1 \
libwayland-server0 \
libx11-6 \
libdbus-glib-1-2 \
libxt6 \
libxcb1 \
libxext6 \
libxfixes3 \
libpci3 \
libasound2 \
libxi6 \
libxkbcommon0 \
libxrandr2 \
libxrender1 \
libxshmfence1 \
libgtk-3-0 \
fonts-liberation \
fonts-noto-color-emoji \
ttf-ubuntu-font-family \
&& rm -rf /var/lib/apt/lists/*
# Switch back to node user
USER node
# Set working directory
WORKDIR /home/node/.n8n
# Create a volume for persistent data
VOLUME /home/node/.n8n
# Expose port 5678
EXPOSE 5678
# Set environment variables
ENV NODE_ENV=production
# Use the default n8n command to start the application
CMD ["n8n", "start"]