-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 825 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 825 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
# Use the ASP.NET base image for ARM64
FROM --platform=linux/arm64 mcr.microsoft.com/dotnet/aspnet:8.0-noble AS base
WORKDIR /app
# Use the .NET SDK image for ARM64
FROM --platform=linux/arm64 mcr.microsoft.com/dotnet/sdk:8.0-noble AS build
WORKDIR /app
# Copy the project file and restore dependencies
COPY ["MisguidedLogs.PlayerEngine/MisguidedLogs.PlayerEngine.csproj", "MisguidedLogs.PlayerEngine/"]
RUN dotnet restore "./MisguidedLogs.PlayerEngine/MisguidedLogs.PlayerEngine.csproj"
# Copy the rest of the application code
COPY . .
RUN dotnet build -c Release -o out
# Publish the application
FROM build AS publish
RUN dotnet publish -c Release -o out
# Final stage to create the runtime image
FROM base AS final
WORKDIR /app
COPY --from=publish /app/out .
ENTRYPOINT ["dotnet", "MisguidedLogs.PlayerEngine.dll"]