Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -28
Dockerfile
CHANGED
|
@@ -1,33 +1,16 @@
|
|
| 1 |
-
|
| 2 |
-
FROM node:20-alpine
|
| 3 |
|
| 4 |
-
|
| 5 |
-
USER root
|
| 6 |
-
|
| 7 |
-
# Arguments for Flowise directories
|
| 8 |
-
ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
|
| 9 |
-
ARG BASE_PATH=/root/.flowise
|
| 10 |
-
ARG DATABASE_PATH=$BASE_PATH
|
| 11 |
-
ARG APIKEY_PATH=$BASE_PATH
|
| 12 |
-
ARG SECRETKEY_PATH=$BASE_PATH
|
| 13 |
-
ARG LOG_PATH=$BASE_PATH/logs
|
| 14 |
-
|
| 15 |
-
# Install dependencies for both Flowise and OLLAMA PHI
|
| 16 |
-
RUN apk add --no-cache git python3 py3-pip make g++ build-base cairo-dev pango-dev chromium \
|
| 17 |
-
&& pip install flowise ollama
|
| 18 |
-
|
| 19 |
-
# Environment Variables for Flowise and OLLAMA
|
| 20 |
-
ENV PUPPETEER_SKIP_DOWNLOAD=true
|
| 21 |
-
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
| 22 |
|
| 23 |
-
#
|
| 24 |
-
|
|
|
|
| 25 |
|
| 26 |
-
#
|
| 27 |
-
|
| 28 |
|
| 29 |
-
# Expose
|
| 30 |
-
EXPOSE
|
| 31 |
|
| 32 |
-
# Start
|
| 33 |
-
CMD ["
|
|
|
|
| 1 |
+
FROM python:3.9 # Base image
|
|
|
|
| 2 |
|
| 3 |
+
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
+
# Install dependencies
|
| 6 |
+
COPY requirements.txt ./
|
| 7 |
+
RUN pip install -r requirements.txt
|
| 8 |
|
| 9 |
+
# Copy your code
|
| 10 |
+
COPY . ./
|
| 11 |
|
| 12 |
+
# Expose the port used by Streamlit
|
| 13 |
+
EXPOSE 8501
|
| 14 |
|
| 15 |
+
# Start the Streamlit app
|
| 16 |
+
CMD ["streamlit", "run", "app.py"]
|