Sample project for Vasek's Azure Functions runtime
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Dockerfile
LICENSE.md
README.md

README.md

Sample dotnet Vasek's Azure Functions project

This repo contains Docker image with sample project for Vasek's Azure Functions runtime host.

FROM microsoft/dotnet:2.1-sdk AS installer-env

COPY src/ /src/
RUN cd /src/SampleFunctionApp && \
    mkdir -p /home/site/wwwroot && \
    dotnet publish *.csproj -c "Release" --output /home/site/wwwroot

FROM vjirovsky/vaseks-af-host:dotnet-2.0

ENV AzureWebJobsStorage="---YOUR-STORAGE_CONNECTION_STRING---"

COPY --from=installer-env ["/home/site/wwwroot", "/home/site/wwwroot"]

# if you want to have health check
# WARNING - this healthcheck is exposed (anybody can call this healthcheck)
HEALTHCHECK --interval=5m --timeout=3s CMD curl -f http://localhost:80/api/healthcheck || exit 1

From Dockerfile you are able to pass on some parameters to your Function application by ENV command (see AzureWebJobsStorage parameter).

Result