oliwheeler / bond-docker

Docker image with the Microsoft Bond Compiler at /usr/local/bin

Home Page:https://hub.docker.com/r/oliwheeler/microsoft-bond/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bond Docker

This creates a Docker image with the Microsoft Bond compiler gbc at / (root).

Use this image in a multi-stage Docker build to copy the compiler to your second build environment.

For example, to build an ASP.NET Core application that also requires bond:

FROM oliwheeler/microsoft-bond AS gbc-env

FROM microsoft/dotnet:sdk AS build-env

COPY --from=gbc-env /gbc /usr/local/bin/gbc

WORKDIR /app

# Copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore

# Copy everything else and build
COPY . ./
RUN dotnet publish -c Release -o out

# Build runtime image
FROM microsoft/dotnet:aspnetcore-runtime
WORKDIR /app
COPY --from=build-env /app/out .
ENTRYPOINT ["dotnet", "aspnetapp.dll"]

About

Docker image with the Microsoft Bond Compiler at /usr/local/bin

https://hub.docker.com/r/oliwheeler/microsoft-bond/


Languages

Language:Dockerfile 100.0%