mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-20 08:02:50 +08:00

* +semver: major upgrading from net5.0 to net6.0 * packages upgraded * removed global.json for ocelot sf sample * update build image * test new build * remove make * fix tests * make test fail like in CI * tests passing locally * updated docs Co-authored-by: TGP <thomasgardham-pallister@Thomass-MacBook-Pro-2.local>
17 lines
526 B
Docker
17 lines
526 B
Docker
# syntax=docker/dockerfile:1
|
|
# call from ocelot repo root with
|
|
# docker build --platform linux/arm64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
|
|
# docker build --platform linux/amd64 --build-arg OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN -f ./docker/Dockerfile.build .
|
|
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build-env
|
|
|
|
ARG OCELOT_COVERALLS_TOKEN
|
|
|
|
ENV OCELOT_COVERALLS_TOKEN=$OCELOT_COVERALLS_TOKEN
|
|
|
|
WORKDIR /build
|
|
|
|
COPY ./. .
|
|
|
|
RUN dotnet tool restore
|
|
|
|
RUN dotnet cake |