forked from Azure/data-api-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (20 loc) · 1.06 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# Build and copy GraphQL binaries and run them.
#
# Version values referenced from https://hub.docker.com/_/microsoft-dotnet-aspnet
FROM mcr.microsoft.com/dotnet/sdk:6.0-cbl-mariner2.0. AS build
WORKDIR /src
FROM mcr.microsoft.com/dotnet/aspnet:6.0-cbl-mariner2.0 AS runtime
# The ./src/out path below points to the finalized build bits created by the pipeline.
# The path is relative to the "Docker build context" specified by the parameter dockerFileContextPath
# in task: onebranch.pipeline.imagebuildinfo@1
# The "Docker build context" contains all the files that will be used by the command "docker build"
# OneBranch uses the injected task Copy Artifacts to
# copy artifacts from pipeline artifacts: "/mnt/{...}/out"
# to the container running the docker tasks: /mnt/{...}/docker/artifacts/
COPY ./src/out/engine/net6.0 /App
# Change working directory to the /App folder within the Docker image and configure
# how Data Api buider is started when the container runs.
WORKDIR /App
ENV ASPNETCORE_URLS=http://+:5000
ENTRYPOINT ["dotnet", "Azure.DataApiBuilder.Service.dll"]