Skip to content
This repository has been archived by the owner on Aug 31, 2024. It is now read-only.

Commit

Permalink
Changed docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinmoris committed Jun 28, 2022
1 parent 32f6e16 commit 387d69a
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/DustedCodes/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build

ARG version=0.0.0-undefined

Expand All @@ -9,16 +9,7 @@ COPY src/ ./
RUN dotnet publish /p:Version=$version DustedCodes/DustedCodes.fsproj -c Release -o published

# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS runtime

# Install gRPC prerequisites on Alpine Linux:
# https://github.com/googleapis/google-cloud-dotnet/issues/4780

# Follow thread for proper fix:
# https://github.com/grpc/grpc/issues/21446
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.8/main' >> /etc/apk/repositories && \
apk update --no-cache && \
apk add --no-cache bash libc6-compat=1.1.19-r11
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS runtime

WORKDIR /app
COPY --from=build /app/published .
Expand Down

0 comments on commit 387d69a

Please sign in to comment.