-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.Dockerfile
More file actions
25 lines (20 loc) · 803 Bytes
/
Copy pathbuild.Dockerfile
File metadata and controls
25 lines (20 loc) · 803 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
25
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
apt install -y \
nodejs
WORKDIR /app
COPY Sharpbox.sln ./
COPY src/Sharpbox.Api/*.csproj ./src/Sharpbox.Api/
COPY src/Sharpbox.App/*.csproj ./src/Sharpbox.App/
COPY src/Sharpbox.Client/*.csproj ./src/Sharpbox.Client/
COPY src/Sharpbox.Demo/*.csproj ./src/Sharpbox.Demo/
COPY src/Sharpbox.Graceful/*.csproj ./src/Sharpbox.Graceful/
COPY src/Sharpbox.Grains/*.csproj ./src/Sharpbox.Grains/
COPY src/Sharpbox.Performance/*.csproj ./src/Sharpbox.Performance/
COPY src/Sharpbox.Silo/*.csproj ./src/Sharpbox.Silo/
RUN dotnet restore --no-cache
COPY . ./
RUN dotnet publish -c Release -o out
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app
COPY --from=build-env /app/out .