Spaces:
Sleeping
Sleeping
up
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
@@ -11,10 +11,9 @@ RUN apt-get update && apt-get install -y \
|
|
11 |
# Copy requirements từ project hiện tại
|
12 |
COPY requirements.txt .
|
13 |
|
14 |
-
# Clone repository meisai-check-ai từ Bitbucket sử dụng
|
15 |
-
|
16 |
-
|
17 |
-
RUN git clone https://vumichien:${BITBUCKET_APP_PW}@bitbucket.org/dtm-partners/meisai-check-ai.git
|
18 |
|
19 |
# Cài đặt dependencies
|
20 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
11 |
# Copy requirements từ project hiện tại
|
12 |
COPY requirements.txt .
|
13 |
|
14 |
+
# Clone repository meisai-check-ai từ Bitbucket sử dụng secret
|
15 |
+
RUN --mount=type=secret,id=BITBUCKET_APP_PW,mode=0444,required=true \
|
16 |
+
git clone https://vumichien:$(cat /run/secrets/BITBUCKET_APP_PW)@bitbucket.org/dtm-partners/meisai-check-ai.git
|
|
|
17 |
|
18 |
# Cài đặt dependencies
|
19 |
RUN pip install --no-cache-dir -r requirements.txt
|