Skip to content

Commit

Permalink
feat(deploy/render): amd-chrome -> amd-full
Browse files Browse the repository at this point in the history
  • Loading branch information
yiyungent committed Jan 6, 2024
1 parent f830597 commit 75091bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions deploy/render/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# render Dockerfile

# FROM yiyungent/knifehub:v1.4.3-amd-full
FROM yiyungent/knifehub:v1.5.1-amd-chrome
FROM yiyungent/knifehub:v1.5.1-amd-full
# FROM yiyungent/knifehub:v1.5.1-amd-chrome

# 处于 /app 目录下
ADD render-entrypoint.sh ./render-entrypoint.sh
Expand Down
8 changes: 5 additions & 3 deletions deploy/render/render-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
export ASPNETCORE_URLS="http://+:5000"
export ASPNETCORE_ENVIRONMENT="Production"
export TZ="Asia/Shanghai"
# https://docs.render.com/web-services#port-detection
export PORT="10000"
# endregion env

# region PluginCore
Expand All @@ -18,8 +20,8 @@ cat '/app/render-PluginCore.Config.json' | sed "s/PLUGINCORE_ADMIN_USERNAME/${PL
cat '/app/App_Data/PluginCore.Config.json' | sed "s/PLUGINCORE_ADMIN_PASSWORD/${PLUGINCORE_ADMIN_PASSWORD}/g" | tee '/app/App_Data/PluginCore.Config.json'
# endregion PluginCore

# cat '/etc/nginx/sites-enabled/default' | sed "s/80/${PORT}/g" | tee '/etc/nginx/sites-enabled/default'
cat '/etc/nginx/sites-enabled/default' | sed "s/80/${PORT}/g" | tee '/etc/nginx/sites-enabled/default'
# /usr/sbin/nginx -s reload

dotnet KnifeHub.Web.dll
# /usr/bin/supervisord -c /etc/supervisord.conf
# dotnet KnifeHub.Web.dll
/usr/bin/supervisord -c /etc/supervisord.conf

0 comments on commit 75091bd

Please sign in to comment.