diff --git a/Dockerfile b/Dockerfile index d1bf3a5..510a0e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,5 +12,6 @@ COPY [ "/src/vsftpd.conf", "/etc" ] COPY [ "/src/docker-entrypoint.sh", "/" ] ENTRYPOINT [ "/docker-entrypoint.sh" ] +CMD [ "/usr/sbin/vsftpd" ] EXPOSE 20/tcp 21/tcp 40000-40009/tcp HEALTHCHECK CMD netstat -lnt | grep :21 || exit 1 diff --git a/src/docker-entrypoint.sh b/src/docker-entrypoint.sh index 9cf1aff..23f4ce0 100755 --- a/src/docker-entrypoint.sh +++ b/src/docker-entrypoint.sh @@ -24,4 +24,4 @@ tail -f /var/log/vsftpd.log | tee /dev/stdout & touch /var/log/xferlog tail -f /var/log/xferlog | tee /dev/stdout & -/usr/sbin/vsftpd +exec "$@"