diff --git a/Dockerfile.dev b/Dockerfile.dev index 7269a73..d48794f 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -42,8 +42,11 @@ RUN if [ "$COUNTRY" = "CN" ] ; then \ fi && \ apk update && apk add --no-cache git +ARG FREONTEND_GIT_REPO=https://github.com/lejianwen/rustdesk-api-web.git +ARG FRONTEND_GIT_BRANCH=master # Clone the frontend repository -RUN git clone https://github.com/lejianwen/rustdesk-api-web . + +RUN git clone -b $FRONTEND_GIT_BRANCH $FREONTEND_GIT_REPO . # Install required tools without caching index to minimize image size RUN if [ "$COUNTRY" = "CN" ] ; then \ diff --git a/docker-compose-dev.yaml b/docker-compose-dev.yaml index 9e30042..6118d4a 100644 --- a/docker-compose-dev.yaml +++ b/docker-compose-dev.yaml @@ -5,6 +5,8 @@ services: dockerfile: Dockerfile.dev args: COUNTRY: CN + FREONTEND_GIT_REPO: https://github.com/lejianwen/rustdesk-api-web.git + FRONTEND_GIT_BRANCH: master # image: lejianwen/rustdesk-api container_name: rustdesk-api environment: