forked from LumexUI/lumexui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 663 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# -----------------------------
# Stage 1: build/publish
# -----------------------------
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
# Install Node.js v22 (LTS current)
RUN apt-get update && apt-get install -y curl \
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
&& apt-get install -y nodejs \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY . .
RUN dotnet publish ./docs/LumexUI.Docs -c Release -o app
# -----------------------------
# Stage 2: runtime
# -----------------------------
FROM mcr.microsoft.com/dotnet/aspnet:9.0
COPY --from=build /src/app .
EXPOSE 8080
ENTRYPOINT ["dotnet","LumexUI.Docs.dll"]