Commit 9e4fbb3c authored by Mike Shoup's avatar Mike Shoup

Use alpine for dotnet builds

parent 7773c854
Pipeline #24604169 passed with stages
in 4 minutes and 27 seconds
FROM microsoft/dotnet:2.1-sdk as build-env
FROM microsoft/dotnet:2.1-sdk-alpine as build-env
WORKDIR /app
# Copy csproj and restore as distinct layers
......@@ -10,7 +10,7 @@ COPY HelloApi/ ./
RUN dotnet publish -c Release -o out
# Build runtime image
FROM microsoft/dotnet:2.1-aspnetcore-runtime
FROM microsoft/dotnet:2.1-aspnetcore-runtime-alpine
WORKDIR /app
COPY --from=build-env /app/out .
ENV ASPNETCORE_URLS http://*:8000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment