Tao Chen 1 год назад
Родитель
Сommit
9101badb1c
2 измененных файлов с 6 добавлено и 1 удалено
  1. 4 1
      Dockerfile.dev
  2. 2 0
      docker-compose-dev.yaml

+ 4 - 1
Dockerfile.dev

@@ -42,8 +42,11 @@ RUN if [ "$COUNTRY" = "CN" ] ; then \
42
     fi && \
42
     fi && \
43
     apk update && apk add --no-cache git
43
     apk update && apk add --no-cache git
44
 
44
 
45
+ARG FREONTEND_GIT_REPO=https://github.com/lejianwen/rustdesk-api-web.git
46
+ARG FRONTEND_GIT_BRANCH=master
45
 # Clone the frontend repository
47
 # Clone the frontend repository
46
-RUN git clone https://github.com/lejianwen/rustdesk-api-web .
48
+
49
+RUN git clone -b $FRONTEND_GIT_BRANCH $FREONTEND_GIT_REPO .
47
 
50
 
48
 # Install required tools without caching index to minimize image size
51
 # Install required tools without caching index to minimize image size
49
 RUN if [ "$COUNTRY" = "CN" ] ; then \
52
 RUN if [ "$COUNTRY" = "CN" ] ; then \

+ 2 - 0
docker-compose-dev.yaml

@@ -5,6 +5,8 @@ services:
5
       dockerfile: Dockerfile.dev
5
       dockerfile: Dockerfile.dev
6
       args:
6
       args:
7
         COUNTRY: CN
7
         COUNTRY: CN
8
+        FREONTEND_GIT_REPO: https://github.com/lejianwen/rustdesk-api-web.git
9
+        FRONTEND_GIT_BRANCH: master
8
     # image: lejianwen/rustdesk-api
10
     # image: lejianwen/rustdesk-api
9
     container_name: rustdesk-api
11
     container_name: rustdesk-api
10
     environment:
12
     environment: