Skip to content

Commit

Permalink
Address review comment from @luke-hill: use dotNet base container
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed Oct 14, 2023
1 parent b9c9e0c commit cc143f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1,588 deletions.
21 changes: 1 addition & 20 deletions docker-berp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Builds a docker image used for building most projects in this repo. It's
# used both by contributors and CI.
#
FROM ubuntu:22.04
FROM mcr.microsoft.com/dotnet/sdk:6.0

ENV DEBIAN_FRONTEND=noninteractive

Expand Down Expand Up @@ -33,25 +33,6 @@ RUN addgroup --gid "$GID" "$USER" \
--shell /bin/bash \
"$USER"

# Install .NET Core
# https://github.com/dotnet/dotnet-docker/blob/5c25dd2ed863dfd73edb1a6381dd9635734d0e5f/2.2/sdk/bionic/amd64/Dockerfile
ENV DOTNET_CLI_TELEMETRY_OPTOUT=true
## Install .NET CLI dependencies
RUN apt-get update \
&& apt-get install --assume-yes --no-install-recommends \
curl \
ca-certificates \
libicu-dev \
&& rm -rf /var/lib/apt/lists/*

## Install .NET Core SDK
ENV DOTNET_SDK_VERSION 6.0

COPY scripts/install-dotnet.sh .
RUN ./install-dotnet.sh -c $DOTNET_SDK_VERSION --install-dir /usr/share/dotnet \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
RUN rm install-dotnet.sh

## Trigger first run experience by running arbitrary cmd to populate local package cache
RUN dotnet --list-sdks

Expand Down
Loading

0 comments on commit cc143f5

Please sign in to comment.