Add vserver Docker deploy script
This commit is contained in:
14
deploy/vserver.Dockerfile
Normal file
14
deploy/vserver.Dockerfile
Normal 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"]
|
||||
24
deploy/vserver.env.example
Normal file
24
deploy/vserver.env.example
Normal 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
|
||||
Reference in New Issue
Block a user