This repository has been archived by the owner on Mar 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(dockerfile): 更新WPS Dockerfile,添加启动脚本和配置文件
- Loading branch information
Showing
3 changed files
with
27 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
USER_ID=${LOCAL_USER_ID:-9001} | ||
chown -R $USER_ID /app | ||
|
||
# 修改usr用户ID | ||
usermod -u $USER_ID user | ||
usermod -a -G root user | ||
export HOME=/home/user | ||
|
||
# 切换到user用户再执行wps | ||
exec gosu user $@ |
Binary file not shown.