-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
📌 seQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.dotnet-docker/subsvcdotnet-fundamentals/svcin-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.
Description
Type of issue
Missing information
Description
Before adding the .NET app to the Docker image, first it must be published. It's best to have the container run the published version of the app.
This could be true but it is not for Dockefile used.
…
# Copy everything
COPY . ./
# Restore as distinct layers
RUN dotnet restore
# Build and publish a release
RUN dotnet publish -c Release -o out
…
These lines take care of building/publishing.
If this would be the case, then lines were be
…
# Copy everything
COPY . ./
# Build runtime image
…
COPY --from=build-env App/bin/Release/net8.0/ .
…
Page URL
Content source URL
https://github.com/dotnet/docs/blob/main/docs/core/docker/build-container.md
Document Version Independent Id
58d57b81-4ca6-6536-8788-f212402b41a7
Article author
Metadata
- ID: 4c7470d2-9a57-7654-e13a-4f912898f7aa
- Service: dotnet-fundamentals
- Sub-service: dotnet-docker
Metadata
Metadata
Assignees
Labels
📌 seQUESTeredIdentifies that an issue has been imported into Quest.Identifies that an issue has been imported into Quest.dotnet-docker/subsvcdotnet-fundamentals/svcin-prThis issue will be closed (fixed) by an active pull request.This issue will be closed (fixed) by an active pull request.