Add vserver Docker deploy script

This commit is contained in:
2026-04-26 19:30:24 +02:00
parent 4c3ed8a76c
commit 26960a8a15
4 changed files with 294 additions and 0 deletions

14
deploy/vserver.Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM mcr.microsoft.com/dotnet/aspnet:10.0
WORKDIR /app
ENV ASPNETCORE_URLS=http://+:8080
ENV DOTNET_EnableDiagnostics=0
EXPOSE 8080
COPY publish/ ./
RUN mkdir -p /app/data
ENTRYPOINT ["dotnet", "RolemasterDb.App.dll"]

View File

@@ -0,0 +1,24 @@
# SSH host or alias from ~/.ssh/config.
REMOTE_HOST=myvserver
# Remote filesystem layout.
REMOTE_APP_DIR=/opt/rolemasterdb
REMOTE_DATA_DIR=/opt/rolemasterdb/data
# Docker names on the remote host.
IMAGE_NAME=rolemasterdb
CONTAINER_NAME=rolemasterdb
# Port mapping: host:container.
HOST_PORT=8080
CONTAINER_PORT=8080
# Set to 1 if docker on the server must be run through sudo.
REMOTE_USE_SUDO=0
# Optional env file that already exists on the server and should be passed
# through to docker run with --env-file.
REMOTE_ENV_FILE=
# Prefix used for the generated local tarball name.
RELEASE_PREFIX=rolemasterdb