Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit 7399e00

Browse files
we can move copying git and versioning way later in the pipeline
1 parent 4c1a7cc commit 7399e00

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ ARG LIBRARY_VERSION=1.2.0
2727

2828
WORKDIR /app
2929

30-
COPY ./*.sln .git ./
31-
32-
RUN dotnet tool install -g minver-cli --version 1.0.0 && \
33-
/root/.dotnet/tools/minver > .version
30+
COPY ./*.sln ./
3431

3532
WORKDIR /app/src
3633

@@ -74,6 +71,11 @@ COPY ./src .
7471

7572
WORKDIR /app
7673

74+
COPY ./*.sln .git ./
75+
76+
RUN dotnet tool install -g minver-cli --version 1.0.0 && \
77+
/root/.dotnet/tools/minver > .version
78+
7779
RUN dotnet run --project build/build.csproj -- --runtime=${RUNTIME} --library-version=${LIBRARY_VERSION}
7880

7981
FROM mcr.microsoft.com/dotnet/core/runtime-deps:${CONTAINER_RUNTIME_VERSION}-${CONTAINER_RUNTIME} AS runtime

0 commit comments

Comments
 (0)