mirror of
https://github.com/SoDOff-Project/sodoff-mmo.git
synced 2025-10-11 16:28:50 -07:00
more fixes to `Dockerfile
`
This commit is contained in:
parent
17cd6a2059
commit
d73fd78472
@ -1,17 +1,18 @@
|
|||||||
# Use the official .NET SDK image for building the application
|
# Use the official .NET SDK image for building the application
|
||||||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
FROM mcr.microsoft.com/dotnet/sdk:6.0
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
# Copy the source code
|
# Copy the source code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Restore dependencies and build the application
|
# Restore Project
|
||||||
RUN dotnet build -c Release -o /app
|
RUN dotnet build -c Release -o /app
|
||||||
|
|
||||||
# Create clean run environment (without source and sdk)
|
# Create clean run environment (without source and sdk)
|
||||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
|
# FROM mcr.microsoft.com/dotnet/aspnet:6.0
|
||||||
WORKDIR /app
|
# WORKDIR /app
|
||||||
COPY --from=build /app .
|
# COPY --from=build /app .
|
||||||
|
|
||||||
# Run the application
|
# Run the application
|
||||||
|
WORKDIR /app
|
||||||
ENTRYPOINT ["./sodoffmmo"]
|
ENTRYPOINT ["./sodoffmmo"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user