-
Notifications
You must be signed in to change notification settings - Fork 377
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 859 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 859 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
# Use the official .NET SDK image to build the application
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /app
# Copy the project file and restore dependencies
COPY ["src/DiIiS-NA/Blizzless.csproj", "src/DiIiS-NA/"]
RUN dotnet restore "src/DiIiS-NA/Blizzless.csproj"
# Copy the rest of the project files and build the application
COPY ["src/", "src/"]
WORKDIR "/app/src/DiIiS-NA"
RUN dotnet publish "Blizzless.csproj" -c Release --runtime linux-x64 --self-contained true -o /app/publish
# Use the official .NET runtime image to run the application
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS runtime
WORKDIR /app
# Copy the published application from the build stage
COPY --from=build /app/publish .
# Expose the port your application is running on (if needed)
EXPOSE 1345 1119 83 2001 9800 9100
# Start the application
ENTRYPOINT ["./Blizzless"]