Skip to content
Snippets Groups Projects
Commit 2daf6ce0 authored by nimrod's avatar nimrod
Browse files

fixup! A different approach for proper user setting.

parent f2f77306
No related branches found
No related tags found
No related merge requests found
Pipeline #918 failed
......@@ -8,10 +8,12 @@ RUN apt-get update && \
vsftpd \
&& \
mkdir -p /var/run/vsftpd/empty && \
mkdir -m 755 /var/lib/transmission/Downloads && \
rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/* /var/cache/apt/archives/*
COPY --chown=root:root entrypoint /usr/local/sbin/
COPY --chown=root:root healthcheck /usr/local/bin
COPY --chown=root:root vsftpd.conf /etc/vsftpd.conf
VOLUME /var/lib/transmission/Downloads
EXPOSE 21 4559 4560 4561 4562 4563 4564
ENTRYPOINT [ "/usr/local/sbin/entrypoint" ]
CMD [ "vsftpd" ]
......
#!/bin/sh
set -eux
install -d -o 1000 -g 1000 -m 755 /var/lib/transmission/Downloads
touch /var/log/vsftpd.log
tail -f /var/log/vsftpd.log &
eval exec "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment