Skip to content

Commit 27729d5

Browse files
authored
Refactor Dockerfile for build stage syntax
Updated Dockerfile to use uppercase 'AS' for build stages.
1 parent 0727fd4 commit 27729d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ COPY ./tests/CompaniesHouse.Tests/*.csproj ./tests/CompaniesHouse.Tests/
2121
COPY ./samples/SampleProject/*.csproj ./samples/SampleProject/
2222
RUN dotnet restore
2323

24-
FROM restore as build
24+
FROM restore AS build
2525
ARG CONFIGURATION
2626
ARG NUGET_PACKAGE_VERSION
2727

@@ -30,11 +30,11 @@ COPY ./tests/ ./tests/
3030
COPY ./samples/ ./samples/
3131
RUN dotnet build --configuration $CONFIGURATION --no-restore
3232

33-
FROM build as test
33+
FROM build AS test
3434
ARG COMPANIES_HOUSE_API_KEY
3535
RUN dotnet test --logger trx --configuration $CONFIGURATION --no-build
3636

37-
FROM build as pack
37+
FROM build AS pack
3838
RUN mkdir -p artifacts
3939
RUN dotnet pack --configuration Release -p:Version=${NUGET_PACKAGE_VERSION} --no-build --output ./artifacts
4040

0 commit comments

Comments
 (0)