forked from SoDOff-Project/sodoff-mmo

- add run.sh and run.bat - change docker config - by default include source in docker image for simple debug (can be disabled via uncoment section in Dockerfile) - add docker-compose.yml - change default time to start first battle event after server start (login first player) to 3 minutes
19 lines
456 B
Docker
19 lines
456 B
Docker
# Use the official .NET SDK image for building the application
|
|
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
|
|
WORKDIR /src
|
|
|
|
# Copy the source code
|
|
COPY . .
|
|
|
|
# Restore dependencies and build the application
|
|
RUN dotnet build -c Release -o /app
|
|
|
|
# Create clean run environment (without source and sdk)
|
|
# FROM mcr.microsoft.com/dotnet/runtime:6.0 AS base
|
|
# WORKDIR /app
|
|
# COPY --from=build /app .
|
|
|
|
# Run the application
|
|
WORKDIR /app
|
|
ENTRYPOINT ["./sodoffmmo"]
|