81
CHAPTER 4 | Development process for Docker-based applications
•
Line #5:
Begin a new stage with the “large” image for building/publishing.
Call it
build
for
reference.
•
Line #6:
Create directory
/src
in the image.
•
Line #7:
Up to line 16,
copy referenced
.csproj
project files to be able to restore packages later.
•
Line #17:
Restore packages for the
Catalog.API
project and the referenced projects.
•
Line #18:
Copy
all directory tree for the solution
(except the files/directories
included in the
.dockerignore
file) to the
/src
directory in the image.
•
Line #19:
Change the current
folder to the
Catalog.API
project.
•
Line #20:
Build the project (and other project dependencies) and output to the
/app
directory in
the image.
•
Line #22:
Begin a new stage continuing from the build. Call it
publish
for reference.
•
Line #23:
Publish the project (and dependencies) and output to the
/app
directory in the image.
•
Line #25:
Begin a
new stage continuing from
base
and call it
final
.
•
Line #26:
Change the current
directory to
Dostları ilə paylaş: