Skip to content

Commit

Permalink
Add dotnet to dockerimages
Browse files Browse the repository at this point in the history
  • Loading branch information
emilwareus authored and ProgHaj committed Sep 18, 2023
1 parent ec503e8 commit c48e9f1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
21 changes: 20 additions & 1 deletion build/docker/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ RUN apk --no-cache --update add \
py3-pip \
go~=1.20 \
nodejs \
yarn
yarn \
dotnet7-sdk

ENV MAVEN_VERSION 3.9.2
ENV MAVEN_HOME /usr/lib/mvn
Expand All @@ -41,3 +42,21 @@ ENV PATH $GRADLE_HOME/gradle-$GRADLE_VERSION/bin:$PATH
RUN wget https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip && \
unzip gradle-$GRADLE_VERSION-bin.zip -d $GRADLE_HOME && \
rm gradle-$GRADLE_VERSION-bin.zip


# ENV BIN_DIRECTORY /usr/bin
# ENV DOTNET_DIRECTORY /usr/bin/dotnet

# #Install dotnet
# RUN apk add --no-cache --virtual build-dependencies curl \
# && curl -SL --output dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/f8834fef-d2ab-4cf6-abc3-d8d79cfcde11/0ee05ef4af5fe324ce2977021bf9f340/dotnet-sdk-3.1.426-linux-musl-x64.tar.gz \
# && mkdir -p $DOTNET_DIRECTORY \
# && tar zxf dotnet.tar.gz -C $DOTNET_DIRECTORY \
# && chmod +x $DOTNET_DIRECTORY/dotnet \
# && rm dotnet.tar.gz \
# && apk del build-dependencies \
# && rm -r $DOTNET_DIRECTORY/packs $DOTNET_DIRECTORY/sdk/3.1.426/TestHost $DOTNET_DIRECTORY/sdk/3.1.426/Extensions \
# $DOTNET_DIRECTORY/sdk/3.1.426/FSharp $DOTNET_DIRECTORY/sdk/3.1.426/Roslyn



5 changes: 5 additions & 0 deletions build/docker/debian.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,8 @@ RUN apt -y update && apt -y upgrade && apt -y install nodejs && \
apt -y clean && rm -rf /var/lib/apt/lists/*
RUN npm install -g npm@latest
RUN npm install --global yarn


RUN wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && dpkg -i packages-microsoft-prod.deb
RUN rm packages-microsoft-prod.deb
RUN apt -y update && apt -y upgrade && apt install -y dotnet-sdk-7.0

0 comments on commit c48e9f1

Please sign in to comment.