Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +18 -1
Dockerfile
CHANGED
|
@@ -1,3 +1,20 @@
|
|
| 1 |
-
FROM
|
|
|
|
|
|
|
|
|
|
| 2 |
ENV PORT=7860
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
CMD ["npx", "flowise", "start", "--port", "7860", "--host", "0.0.0.0"]
|
|
|
|
| 1 |
+
FROM node:18-alpine
|
| 2 |
+
USER root
|
| 3 |
+
|
| 4 |
+
# Hugging Face Spaces port
|
| 5 |
ENV PORT=7860
|
| 6 |
+
|
| 7 |
+
# Install dependencies
|
| 8 |
+
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium
|
| 9 |
+
|
| 10 |
+
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
| 11 |
+
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
| 12 |
+
|
| 13 |
+
# Install Flowise globally - exact old version
|
| 14 |
+
RUN npm install -g flowise@2.2
|
| 15 |
+
|
| 16 |
+
# Simple working directory
|
| 17 |
+
WORKDIR /app
|
| 18 |
+
|
| 19 |
+
# Start command - let Flowise create its own directories
|
| 20 |
CMD ["npx", "flowise", "start", "--port", "7860", "--host", "0.0.0.0"]
|