From 0143484a9ac75b393efb811c9687309e671c0806 Mon Sep 17 00:00:00 2001 From: Gareth Flowers Date: Mon, 25 Sep 2023 17:01:35 +0100 Subject: [PATCH] fix(docker): removes CMD entry to run vsftpd (#63) --- Dockerfile | 1 - src/docker-entrypoint.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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