Merge pull request #653 from Cucumberrbob/master

Use local files when building docker image
This commit is contained in:
Roger Far 2025-01-19 19:49:27 -07:00 committed by GitHub
commit b33ecd6b1c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,9 +10,9 @@ WORKDIR /appclient
RUN apk add --no-cache git python3 py3-pip make g++ RUN apk add --no-cache git python3 py3-pip make g++
COPY client ./client
COPY root ./root
RUN \ RUN \
echo "**** Cloning Source Code ****" && \
git clone https://github.com/rogerfar/rdt-client.git . && \
cd client && \ cd client && \
echo "**** Building Code ****" && \ echo "**** Building Code ****" && \
npm ci && \ npm ci && \
@ -30,9 +30,8 @@ ENV BUILDPLATFORM=${BUILDPLATFORM:-linux/amd64}
RUN mkdir /appserver RUN mkdir /appserver
WORKDIR /appserver WORKDIR /appserver
COPY server ./server
RUN \ RUN \
echo "**** Cloning Source Code ****" && \
git clone https://github.com/rogerfar/rdt-client.git . && \
echo "**** Building Source Code for $TARGETPLATFORM on $BUILDPLATFORM ****" && \ echo "**** Building Source Code for $TARGETPLATFORM on $BUILDPLATFORM ****" && \
cd server && \ cd server && \
dotnet restore --no-cache RdtClient.sln && dotnet publish --no-restore -c Release -o out ; dotnet restore --no-cache RdtClient.sln && dotnet publish --no-restore -c Release -o out ;