Spaces:
Sleeping
Sleeping
up
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -11,9 +11,12 @@ 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 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
|
|
|
|
| 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 và checkout sang nhánh chien_develop
|
| 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 |
+
cd meisai-check-ai && \
|
| 18 |
+
git checkout chien_develop && \
|
| 19 |
+
cd ..
|
| 20 |
|
| 21 |
# Cài đặt dependencies
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|