Skip to content

Commit 6dac02e

Browse files
committed
remove version argument docker
1 parent e4226dd commit 6dac02e

4 files changed

Lines changed: 3 additions & 7 deletions

File tree

scripts/Build-Docker.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ docker buildx build --load `
7070
--build-arg VERSION="$gitVersion" `
7171
--cache-from "type=registry,ref=$LATEST_VERSION_IMAGE" `
7272
--cache-to "type=inline" `
73-
-t "$GIT_VERSION_IMAGE" `
7473
-f "$DockerfilePath" .
7574

7675
$sw.Stop()

src/authorization/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ WORKDIR /src/authorization/EventTriangleAPI.Authorization.Presentation
6060

6161
ARG VERSION
6262

63-
RUN dotnet publish -c Release \
64-
-p:Version=$VERSION \
65-
-o /app/publish \
66-
/p:UseAppHost=false
63+
RUN dotnet publish -c Release -o /app/publish /p:UseAppHost=false
6764

6865
#######################################################################################################
6966
# FINAL IMAGE

src/consumer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN dotnet restore "consumer/EventTriangleAPI.Consumer.Presentation/EventTriangl
1616
COPY . .
1717
WORKDIR "consumer/EventTriangleAPI.Consumer.Presentation"
1818
ARG VERSION
19-
RUN dotnet publish "EventTriangleAPI.Consumer.Presentation.csproj" -c Release -p:Version=$VERSION -o /app/publish /p:UseAppHost=false
19+
RUN dotnet publish "EventTriangleAPI.Consumer.Presentation.csproj" -c Release -o /app/publish /p:UseAppHost=false
2020

2121
FROM base AS final
2222
WORKDIR /app

src/sender/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN dotnet restore "sender/EventTriangleAPI.Sender.Presentation/EventTriangleAPI
1919
COPY . .
2020
WORKDIR "sender/EventTriangleAPI.Sender.Presentation"
2121
ARG VERSION
22-
RUN dotnet publish "EventTriangleAPI.Sender.Presentation.csproj" -c Release -p:Version=$VERSION -o /app/publish /p:UseAppHost=false
22+
RUN dotnet publish "EventTriangleAPI.Sender.Presentation.csproj" -c Release -o /app/publish /p:UseAppHost=false
2323

2424
FROM base AS final
2525
WORKDIR /app

0 commit comments

Comments
 (0)