Johan09033
commited on
Commit
·
8c5d945
1
Parent(s):
4dcb837
dckfile
Browse files- Dockerfile +34 -0
Dockerfile
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:18-alpine
|
2 |
+
|
3 |
+
RUN mkdir -p /data && mkdir -p /data/flowise && mkdir -p /data/flowise/logs && chmod -R 777 /data
|
4 |
+
# Set home to the /data directory
|
5 |
+
ENV HOME=/data
|
6 |
+
|
7 |
+
WORKDIR $HOME/flowise
|
8 |
+
|
9 |
+
RUN apk add --no-cache git
|
10 |
+
RUN apk add --no-cache python3 py3-pip make g++
|
11 |
+
# needed for pdfjs-dist
|
12 |
+
RUN apk add --no-cache build-base cairo-dev pango-dev
|
13 |
+
|
14 |
+
# Install Chromium
|
15 |
+
RUN apk add --no-cache chromium
|
16 |
+
|
17 |
+
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
18 |
+
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
19 |
+
ENV DATABASE_PATH=$HOME/flowise
|
20 |
+
ENV APIKEY_PATH=$HOME/flowise
|
21 |
+
ENV LOG_PATH=$HOME/flowise/logs
|
22 |
+
ENV LOG_LEVEL=debug
|
23 |
+
ENV DEBUG=true
|
24 |
+
|
25 |
+
# You can install a specific version like: [email protected]
|
26 |
+
RUN npm install -g flowise
|
27 |
+
|
28 |
+
RUN mkdir -p /usr/local/lib/node_modules/flowise && mkdir -p /usr/local/lib/node_modules/flowise/uploads && chmod -R 777 /usr/local/lib/node_modules/flowise
|
29 |
+
|
30 |
+
USER 1000
|
31 |
+
|
32 |
+
EXPOSE 3000
|
33 |
+
|
34 |
+
CMD /bin/sh -c "sleep 3; flowise start"
|