Update Dockerfile
Browse files- Dockerfile +2 -15
Dockerfile
CHANGED
|
@@ -1,20 +1,7 @@
|
|
| 1 |
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
# you will also find guides on how best to write your Dockerfile
|
| 3 |
|
| 4 |
-
|
| 5 |
-
FROM node:18-alpine
|
| 6 |
-
|
| 7 |
-
USER root
|
| 8 |
-
|
| 9 |
-
ARG FLOWISE_PATH=/usr/local/lib/node_modules/flowise
|
| 10 |
-
ARG BASE_PATH=/root/.flowise
|
| 11 |
-
ARG DATABASE_PATH=$BASE_PATH
|
| 12 |
-
ARG APIKEY_PATH=$BASE_PATH
|
| 13 |
-
ARG SECRETKEY_PATH=$BASE_PATH
|
| 14 |
-
ARG LOG_PATH=$BASE_PATH/logs
|
| 15 |
-
ARG BLOB_STORAGE_PATH=$BASE_PATH/storage
|
| 16 |
-
|
| 17 |
-
RUN apk add --no-cache git
|
| 18 |
|
| 19 |
RUN useradd -m -u 1000 user
|
| 20 |
USER user
|
|
@@ -24,7 +11,7 @@ WORKDIR /app
|
|
| 24 |
|
| 25 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
|
| 30 |
RUN pip install git+https://github.com/LIAAD/yake
|
|
|
|
| 1 |
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
# you will also find guides on how best to write your Dockerfile
|
| 3 |
|
| 4 |
+
FROM python:3.12.5-slim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
RUN useradd -m -u 1000 user
|
| 7 |
USER user
|
|
|
|
| 11 |
|
| 12 |
COPY --chown=user ./requirements.txt requirements.txt
|
| 13 |
|
| 14 |
+
RUN apt-get install -y git
|
| 15 |
|
| 16 |
|
| 17 |
RUN pip install git+https://github.com/LIAAD/yake
|