mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-08-05 23:21:48 +00:00
Update vuepress nav
Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
This commit is contained in:
@@ -32,3 +32,5 @@ COPY --chown=bin files* /mydir/
|
||||
COPY --chown=1 files* /mydir/
|
||||
COPY --chown=10:11 files* /mydir/
|
||||
```
|
||||
|
||||
如果源路径为文件夹,复制的时候不是直接复制该文件夹,而是将文件夹中的内容复制到目标路径。
|
||||
|
@@ -18,7 +18,7 @@ RUN [ "redis-server" ]
|
||||
# 建立 redis 用户,并使用 gosu 换另一个用户执行命令
|
||||
RUN groupadd -r redis && useradd -r -g redis redis
|
||||
# 下载 gosu
|
||||
RUN wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/1.7/gosu-amd64" \
|
||||
RUN wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/1.12/gosu-amd64" \
|
||||
&& chmod +x /usr/local/bin/gosu \
|
||||
&& gosu nobody true
|
||||
# 设置 CMD,并以另外的用户执行
|
||||
|
Reference in New Issue
Block a user