We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87a9a0c commit 5f150b5Copy full SHA for 5f150b5
Dockerfile
@@ -2,15 +2,14 @@ FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
2
WORKDIR /src
3
4
COPY . .
5
-RUN dotnet restore
6
-RUN dotnet publish -c Release -o /app/publish
+RUN dotnet restore BCSSViewer.Wasm/BCSSViewer.Wasm.csproj
+RUN dotnet publish BCSSViewer.Wasm/BCSSViewer.Wasm.csproj -c Release -o /app/publish
7
8
-FROM mcr.microsoft.com/dotnet/aspnet:10.0
9
-WORKDIR /app
+# Caddy runtime
+FROM caddy:alpine
10
11
-COPY --from=build /app/publish .
+# static files
12
+COPY --from=build /app/publish/wwwroot /usr/share/caddy
13
-ENV ASPNETCORE_URLS=http://+:8080
14
-EXPOSE 8080
15
-
16
-ENTRYPOINT ["dotnet", "BCSS.dll"]
+# custom caddy config
+COPY Caddyfile /etc/caddy/Caddyfile
0 commit comments