Skip to content

Commit

Permalink
Use ENV key=value in dotnet lifecycle images (#2123)
Browse files Browse the repository at this point in the history
Running workload lifecycle tests on my docker fails to build these
images with:

```
         1 warning found (use docker --debug to expand):
         - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 4)
    | 20:56:02 | workflow-lifecycle | Build and Load Test App Images              | SCRIPT    | ERROR |

```

I'm assuming this is just a docker version issue
  • Loading branch information
damemi authored Jan 6, 2025
1 parent 75b6e80 commit 8b168c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY . .
ENV USE_DOTNET6 true
ENV USE_DOTNET6=true
RUN dotnet restore
RUN dotnet publish -c Release -o /app

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build
WORKDIR /src
COPY . .
ENV USE_DOTNET6 true
ENV USE_DOTNET6=true
RUN dotnet restore
RUN dotnet publish -c Release -o /app

Expand Down

0 comments on commit 8b168c5

Please sign in to comment.
  NODES
COMMUNITY 1
Note 1
Project 3
USERS 1