Spaces:
Sleeping
Sleeping
Update with workflow
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
@@ -48,7 +48,7 @@ ENV PYTHONUNBUFFERED=1 \
|
|
48 |
# NLTK
|
49 |
NLTK_DATA="/home/user/nltk/" \
|
50 |
# Store files
|
51 |
-
DATA_DIR="/api/data/" \
|
52 |
# Set the custom Poetry configuration directory
|
53 |
POETRY_CONFIG_DIR="$POETRY_HOME/.config/pypoetry" \
|
54 |
# Crypt
|
@@ -85,10 +85,16 @@ WORKDIR /
|
|
85 |
### ------
|
86 |
### Copy from Repo
|
87 |
### ------
|
|
|
|
|
|
|
|
|
|
|
88 |
RUN mkdir -p /api
|
|
|
89 |
RUN --mount=type=secret,id=TAG,mode=0444,required=true \
|
90 |
--mount=type=secret,id=URL,mode=0444,required=true \
|
91 |
-
git clone --branch $(cat /run/secrets/
|
92 |
|
93 |
|
94 |
### ------
|
|
|
48 |
# NLTK
|
49 |
NLTK_DATA="/home/user/nltk/" \
|
50 |
# Store files
|
51 |
+
DATA_DIR="/app/api/data/" \
|
52 |
# Set the custom Poetry configuration directory
|
53 |
POETRY_CONFIG_DIR="$POETRY_HOME/.config/pypoetry" \
|
54 |
# Crypt
|
|
|
85 |
### ------
|
86 |
### Copy from Repo
|
87 |
### ------
|
88 |
+
RUN mkdir -p /langworkflow
|
89 |
+
RUN --mount=type=secret,id=TAG,mode=0444,required=true \
|
90 |
+
--mount=type=secret,id=URL,mode=0444,required=true \
|
91 |
+
git clone --branch $(cat /run/secrets/TAG_WORKFLOW) $(cat /run/secrets/URL_WORKFLOW) /langworkflow
|
92 |
+
|
93 |
RUN mkdir -p /api
|
94 |
+
|
95 |
RUN --mount=type=secret,id=TAG,mode=0444,required=true \
|
96 |
--mount=type=secret,id=URL,mode=0444,required=true \
|
97 |
+
git clone --branch $(cat /run/secrets/TAG_PROJECT) $(cat /run/secrets/URL_PROJECT) /api
|
98 |
|
99 |
|
100 |
### ------
|