Spaces:
Paused
Paused
bitsnaps
commited on
Commit
·
69db1e4
1
Parent(s):
f56d4bb
init
Browse files- Dockerfile +27 -0
- README.md +3 -3
Dockerfile
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:18-alpine
|
| 2 |
+
USER root
|
| 3 |
+
|
| 4 |
+
# Arguments that can be passed at build time
|
| 5 |
+
ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
|
| 6 |
+
ARG BASE_PATH=/root/.flowise
|
| 7 |
+
ARG DATABASE_PATH=$BASE_PATH
|
| 8 |
+
ARG APIKEY_PATH=$BASE_PATH
|
| 9 |
+
ARG SECRETKEY_PATH=$BASE_PATH
|
| 10 |
+
ARG LOG_PATH=$BASE_PATH/logs
|
| 11 |
+
ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
|
| 12 |
+
|
| 13 |
+
# Install dependencies
|
| 14 |
+
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
|
| 15 |
+
|
| 16 |
+
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
| 17 |
+
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
| 18 |
+
|
| 19 |
+
# Install Flowise globally
|
| 20 |
+
RUN npm install -g flowise
|
| 21 |
+
|
| 22 |
+
# Configure Flowise directories using the ARG
|
| 23 |
+
RUN mkdir -p $LOG_PATH $FLOWISE_PATH/uploads && chmod -R 777 $LOG_PATH $FLOWISE_PATH
|
| 24 |
+
|
| 25 |
+
WORKDIR /data
|
| 26 |
+
|
| 27 |
+
CMD ["npx", "flowise", "start"]
|
README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
|
|
| 1 |
---
|
| 2 |
title: Flowise
|
| 3 |
-
|
| 4 |
-
colorFrom: red
|
| 5 |
colorTo: gray
|
| 6 |
sdk: docker
|
| 7 |
-
pinned:
|
| 8 |
---
|
| 9 |
|
| 10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
+
# Flowise
|
| 2 |
---
|
| 3 |
title: Flowise
|
| 4 |
+
colorFrom: green
|
|
|
|
| 5 |
colorTo: gray
|
| 6 |
sdk: docker
|
| 7 |
+
pinned: true
|
| 8 |
---
|
| 9 |
|
| 10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|