Skip to content

Commit fe8f03f

Browse files
committed
Fix Dockerfile
1 parent 3bdb10a commit fe8f03f

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Dockerfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
22
WORKDIR /src
33

4+
COPY CodeBeam.Website/*.csproj CodeBeam.Website/
5+
COPY CodeBeam.Website.Client/*.csproj CodeBeam.Website.Client/
6+
7+
RUN dotnet restore CodeBeam.Website/CodeBeam.Website.csproj
8+
49
COPY . .
5-
RUN dotnet restore
10+
611
RUN dotnet publish CodeBeam.Website/CodeBeam.Website.csproj -c Release -o /app/publish
712

813
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
@@ -13,4 +18,4 @@ COPY --from=build /app/publish .
1318
ENV ASPNETCORE_URLS=http://+:8080
1419
EXPOSE 8080
1520

16-
ENTRYPOINT ["dotnet", "CodeBeam.Website.dll"]
21+
ENTRYPOINT ["dotnet", "CodeBeam.Website.dll"]

0 commit comments

Comments
 (0)