Skip to content

Commit dbcb651

Browse files
Move Onebranch docker file out of .pipelines directory (#2142)
## Why make this change? - folders with name `.*` is not being checked out in one branch. So, `.pipelines` folder is not being checked out. ## What is this change? - So to access the new one branch docker file i'm moving it out of .pipelines folder. ## How was this tested? - accesseble in pipeline --------- Co-authored-by: Sean Leonard <sean.leonard@microsoft.com>
1 parent 2ce1591 commit dbcb651

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,20 @@
44
# Version values referenced from https://hub.docker.com/_/microsoft-dotnet-aspnet
55

66
FROM mcr.microsoft.com/dotnet/sdk:6.0-cbl-mariner2.0. AS build
7-
8-
97
WORKDIR /src
10-
COPY [".", "./"]
11-
RUN dotnet build "./src/Service/Azure.DataApiBuilder.Service.csproj" -c Docker -o /out -r linux-x64
12-
138
FROM mcr.microsoft.com/dotnet/aspnet:6.0-cbl-mariner2.0 AS runtime
149

15-
COPY --from=build /out /App
10+
# The ./src/out path below points to the finalized build bits created by the pipeline.
11+
# The path is relative to the "Docker build context" specified by the parameter dockerFileContextPath
12+
# in task: onebranch.pipeline.imagebuildinfo@1
13+
# The "Docker build context" contains all the files that will be used by the command "docker build"
14+
# OneBranch uses the injected task Copy Artifacts to
15+
# copy artifacts from pipeline artifacts: "/mnt/{...}/out"
16+
# to the container running the docker tasks: /mnt/{...}/docker/artifacts/
17+
COPY ./src/out/engine/net6.0 /App
18+
19+
# Change working directory to the /App folder within the Docker image and configure
20+
# how Data Api buider is started when the container runs.
1621
WORKDIR /App
1722
ENV ASPNETCORE_URLS=http://+:5000
1823
ENTRYPOINT ["dotnet", "Azure.DataApiBuilder.Service.dll"]
File renamed without changes.

0 commit comments

Comments
 (0)