aboutsummaryrefslogtreecommitdiff
path: root/plugins/ObjectCacheServer/server/container/run.sh
blob: 2c2636cf9ad2e32d07a646fe5fa9746226d82a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

#this script will be invoked by dumb-init in the container on statup and is located at /app

rm -rf config && mkdir config

#substitude all -template files in the config-templates dir and write them to the config dir
for file in config-templates/*-template.json; do
	envsubst < $file > config/$(basename $file -template.json).json
done

cp usr/assets/* plugins/assets/ -rf

#start the server
dotnet webserver/VNLib.WebServer.dll --config config/config.json $SERVER_ARGS