diff --git a/Dockerfile b/Dockerfile index dbad48a..4b12a90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,6 @@ RUN apk add --no-cache --update \ COPY [ "/src/vsftpd.conf", "/etc" ] COPY [ "/src/docker-entrypoint.sh", "/" ] -CMD [ "/usr/sbin/vsftpd" ] ENTRYPOINT [ "/docker-entrypoint.sh" ] 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 0024f05..43ae0b3 100755 --- a/src/docker-entrypoint.sh +++ b/src/docker-entrypoint.sh @@ -22,4 +22,4 @@ tail -f /var/log/vsftpd.log | tee /dev/stdout & touch /var/log/xferlog tail -f /var/log/xferlog | tee /dev/stdout & -exec "$@" +/usr/sbin/vsftpd