Skip to content

Commit 5f150b5

Browse files
authored
Update Dockerfile
1 parent 87a9a0c commit 5f150b5

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Dockerfile

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

44
COPY . .
5-
RUN dotnet restore
6-
RUN dotnet publish -c Release -o /app/publish
5+
RUN dotnet restore BCSSViewer.Wasm/BCSSViewer.Wasm.csproj
6+
RUN dotnet publish BCSSViewer.Wasm/BCSSViewer.Wasm.csproj -c Release -o /app/publish
77

8-
FROM mcr.microsoft.com/dotnet/aspnet:10.0
9-
WORKDIR /app
8+
# Caddy runtime
9+
FROM caddy:alpine
1010

11-
COPY --from=build /app/publish .
11+
# static files
12+
COPY --from=build /app/publish/wwwroot /usr/share/caddy
1213

13-
ENV ASPNETCORE_URLS=http://+:8080
14-
EXPOSE 8080
15-
16-
ENTRYPOINT ["dotnet", "BCSS.dll"]
14+
# custom caddy config
15+
COPY Caddyfile /etc/caddy/Caddyfile

0 commit comments

Comments
 (0)