mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-17 12:33:22 +08:00
+semver: breaking upgrade base build image to net5.0
This commit is contained in:
parent
708b575857
commit
7254d4d1fb
@ -1,9 +1,9 @@
|
||||
# this is the dockerfile that create the ocelot build container
|
||||
# build with the docker-build.sh file in this folder
|
||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-bionic AS build
|
||||
|
||||
RUN apt install gnupg ca-certificates
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
|
||||
RUN echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list
|
||||
RUN apt update
|
||||
RUN apt-get -y install mono-devel
|
||||
# this is the dockerfile that create the ocelot build container
|
||||
# build with the docker-build.sh file in this folder
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0-focal AS build
|
||||
|
||||
RUN apt update
|
||||
RUN apt install -y dirmngr gnupg apt-transport-https ca-certificates software-properties-common
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
|
||||
RUN apt-add-repository 'deb https://download.mono-project.com/repo/ubuntu stable-focal main'
|
||||
RUN apt install -y mono-devel
|
||||
|
@ -1,6 +1,7 @@
|
||||
# this script build the ocelot docker file
|
||||
docker build -t mijitt0m/ocelot-build -f Dockerfile.base .
|
||||
echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
|
||||
docker tag mijitt0m/ocelot-build mijitt0m/ocelot-build:0.0.1
|
||||
docker push mijitt0m/ocelot-build:latest
|
||||
docker push mijitt0m/ocelot-build:0.0.1
|
||||
# this script build the ocelot docker file
|
||||
version=0.0.2
|
||||
docker build -t mijitt0m/ocelot-build -f Dockerfile.base .
|
||||
echo $DOCKER_PASS | docker login -u $DOCKER_USER --password-stdin
|
||||
docker tag mijitt0m/ocelot-build mijitt0m/ocelot-build:$version
|
||||
docker push mijitt0m/ocelot-build:latest
|
||||
docker push mijitt0m/ocelot-build:$version
|
||||
|
Loading…
x
Reference in New Issue
Block a user