From 7b97ab8cd28a2cf17b4cfc82fd62f6b0d8546cb1 Mon Sep 17 00:00:00 2001 From: Cucumberrbob <128094686+Cucumberrbob@users.noreply.github.com> Date: Mon, 6 Jan 2025 18:53:26 +0000 Subject: [PATCH] Use local files when building docker image instead of cloning repo from github --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e210c88..98d7722 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,9 +10,9 @@ WORKDIR /appclient RUN apk add --no-cache git python3 py3-pip make g++ +COPY client ./client +COPY root ./root RUN \ - echo "**** Cloning Source Code ****" && \ - git clone https://github.com/rogerfar/rdt-client.git . && \ cd client && \ echo "**** Building Code ****" && \ npm ci && \ @@ -30,9 +30,8 @@ ENV BUILDPLATFORM=${BUILDPLATFORM:-linux/amd64} RUN mkdir /appserver WORKDIR /appserver +COPY server ./server RUN \ - echo "**** Cloning Source Code ****" && \ - git clone https://github.com/rogerfar/rdt-client.git . && \ echo "**** Building Source Code for $TARGETPLATFORM on $BUILDPLATFORM ****" && \ cd server && \ dotnet restore --no-cache RdtClient.sln && dotnet publish --no-restore -c Release -o out ;