mirror of
https://gitee.com/kennylee/docker.git
synced 2024-11-29 18:38:34 +08:00
优化一些注释
This commit is contained in:
parent
75753efee8
commit
88430b415d
@ -3,7 +3,6 @@ FROM registry.cn-hangzhou.aliyuncs.com/kennylee/ruby:2.6-stretch
|
||||
|
||||
MAINTAINER kennylee26 <kennylee26@gmail.com>
|
||||
|
||||
# recommend lib
|
||||
RUN apt-get update && \
|
||||
apt-get -y install libicu-dev && \
|
||||
apt-get clean && \
|
||||
|
@ -1,10 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! -f /etc/pure-ftpd/pureftpd.pdb ]; then
|
||||
user=$FTP_USER_NAME
|
||||
pwd=$FTP_USER_PASS
|
||||
mkdir -p $FTP_USER_HOME/$user
|
||||
chown 1000:1000 $FTP_USER_HOME/$user
|
||||
(echo $pwd; echo $pwd) | pure-pw useradd $user -u ftpuser -d $FTP_USER_HOME/$user
|
||||
pure-pw mkdb
|
||||
fi
|
@ -11,6 +11,7 @@ services:
|
||||
- ./data/files/:/home/ftpusers/
|
||||
- ./data/pure-ftpd/passwd:/etc/pure-ftpd/passwd
|
||||
environment:
|
||||
# 注意修改.env中的PUBLICHOST变量为服务器外网地址(默认是docker私有网络IP),不然被动模式无法使用
|
||||
PUBLICHOST: ${PUBLICHOST}
|
||||
FTP_USER_NAME: ${FTP_USER_NAME}
|
||||
FTP_USER_PASS: ${FTP_USER_PASS}
|
||||
|
Loading…
Reference in New Issue
Block a user