Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM node:18-alpine
|
2 |
+
USER root
|
3 |
+
ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
|
4 |
+
ARG BASE_PATH=/root/.flowise
|
5 |
+
ARG DATABASE_PATH=$BASE_PATH
|
6 |
+
ARG APIKEY_PATH=$BASE_PATH
|
7 |
+
ARG SECRETKEY_PATH=$BASE_PATH
|
8 |
+
ARG LOG_PATH=$BASE_PATH/logs
|
9 |
+
ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
|
10 |
+
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
|
11 |
+
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
12 |
+
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
13 |
+
RUN npm install -g flowise
|
14 |
+
RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
|
15 |
+
WORKDIR /data
|
16 |
+
CMD ["npx", "flowise", "start"]
|