We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a073d9 commit 300f195Copy full SHA for 300f195
1 file changed
Dockerfile
@@ -7,18 +7,13 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - \
7
&& echo "npm version: $(npm --version)" \
8
&& rm -rf /var/lib/apt/lists/*
9
10
-COPY AngularSpa/package.json .
11
-COPY AngularSpa/npm-shrinkwrap.json .
12
-
13
-RUN npm --prefix AngularSpa install
14
15
COPY . .
16
RUN dotnet restore
17
18
WORKDIR /app/AngularSpa
19
-RUN dotnet publish -c release -o /app --no-restore
+RUN dotnet publish -c release -o /out --no-restore
20
21
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
22
WORKDIR /app
23
-COPY --from=build /app ./
24
-ENTRYPOINT ["dotnet", "AngularSpa.dll"]
+COPY --from=build /out ./
+ENTRYPOINT ["dotnet", "AngularSpa.dll"]
0 commit comments