优化一些注释

This commit is contained in:
KennyLee 2019-06-27 16:20:41 +08:00
parent 75753efee8
commit 88430b415d
3 changed files with 1 additions and 11 deletions

View File

@ -3,7 +3,6 @@ FROM registry.cn-hangzhou.aliyuncs.com/kennylee/ruby:2.6-stretch
MAINTAINER kennylee26 <kennylee26@gmail.com> MAINTAINER kennylee26 <kennylee26@gmail.com>
# recommend lib
RUN apt-get update && \ RUN apt-get update && \
apt-get -y install libicu-dev && \ apt-get -y install libicu-dev && \
apt-get clean && \ apt-get clean && \

View File

@ -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

View File

@ -11,6 +11,7 @@ services:
- ./data/files/:/home/ftpusers/ - ./data/files/:/home/ftpusers/
- ./data/pure-ftpd/passwd:/etc/pure-ftpd/passwd - ./data/pure-ftpd/passwd:/etc/pure-ftpd/passwd
environment: environment:
# 注意修改.env中的PUBLICHOST变量为服务器外网地址默认是docker私有网络IP不然被动模式无法使用
PUBLICHOST: ${PUBLICHOST} PUBLICHOST: ${PUBLICHOST}
FTP_USER_NAME: ${FTP_USER_NAME} FTP_USER_NAME: ${FTP_USER_NAME}
FTP_USER_PASS: ${FTP_USER_PASS} FTP_USER_PASS: ${FTP_USER_PASS}