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

Commit

Permalink
Merge pull request #2 from speakeasy-api/dotnet5
Browse files Browse the repository at this point in the history
install .NET5 alongside .NET6
  • Loading branch information
2ynn authored Feb 21, 2024
2 parents 8e63486 + 1969d26 commit 10ebc3f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN go build -o /action
FROM golang:1.21-alpine

RUN apk update
RUN apk add git
RUN apk add git bash curl

### Install Node
RUN apk add --update --no-cache nodejs npm
Expand All @@ -32,8 +32,14 @@ RUN apk add --update --no-cache openjdk11 gradle
### Install Ruby
RUN apk add --update --no-cache build-base ruby ruby-bundler ruby-dev

### Install Dotnet
RUN apk add --update --no-cache dotnet6-sdk

### Install .NET 6.0
ENV DOTNET_ROOT=/usr/lib/dotnet
RUN apk add --update --no-cache dotnet6-sdk curl bash

# Install .NET 5.0
RUN curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin -Channel 5.0 -InstallDir ${DOTNET_ROOT}
RUN ${DOTNET_ROOT}/dotnet --list-sdks

### Install PHP and Composer
#### Source: https://github.com/geshan/docker-php-composer-alpine/blob/master/Dockerfile
Expand Down

0 comments on commit 10ebc3f

Please sign in to comment.