Skip to content

Commit 9076367

Browse files
authored
Create Dockerfile
1 parent b505231 commit 9076367

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

.docker/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# BUILD
2+
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
3+
WORKDIR /src
4+
5+
ENV CI=true
6+
7+
COPY docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm/*.csproj CodeBeam.Website/
8+
COPY docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.Client/*.csproj CodeBeam.Website.Client/
9+
10+
RUN dotnet restore CodeBeam.Website/CodeBeam.UltimateAuth.Docs.Wasm.csproj
11+
12+
COPY . .
13+
14+
RUN dotnet publish docs/website/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm/CodeBeam.UltimateAuth.Docs.Wasm.csproj \
15+
-c Release -o /app/publish
16+
17+
# RUNTIME
18+
FROM mcr.microsoft.com/dotnet/aspnet:10.0
19+
WORKDIR /app
20+
COPY --from=build /app/publish .
21+
22+
EXPOSE 8080
23+
ENTRYPOINT ["dotnet", "CodeBeam.UltimateAuth.Docs.Wasm.dll"]

0 commit comments

Comments
 (0)