Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add with-peruserlimits #7

Merged
merged 3 commits into from
Aug 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
set sysconfdir and localstatedir, add with-peruserlimits
matthewh86 committed Aug 28, 2024
commit a2659f3deb04f8516a02e8ef611c4773c400dec3
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -37,12 +37,15 @@ RUN apk update \
\
# Build Pure-FTPd from sources
&& ./configure --prefix=/usr \
--sysconfdir=/etc/pure-ftpd \
--localstatedir=/var/pure-ftpd \
--with-puredb \
--with-quotas \
--with-ratios \
--with-rfc2640 \
--with-throttling \
--with-tls \
--with-peruserlimits \
--without-capabilities \
--without-humor \
--without-inetd \
@@ -61,7 +64,7 @@ RUN apk update \
&& install -d -o pure-ftpd -g pure-ftpd /data \
# Disable daemonization
&& sed -i -e 's,^Daemonize .*,Daemonize no,' \
/etc/pure-ftpd.conf \
/etc/pure-ftpd/pure-ftpd.conf \
# No documentation included to keep image size smaller
&& rm -rf /usr/share/man/* \
\
@@ -102,4 +105,4 @@ EXPOSE 21 30000-30009

ENTRYPOINT ["/init"]

CMD ["pure-ftpd", "/etc/pure-ftpd.conf"]
CMD ["pure-ftpd", "/etc/pure-ftpd/pure-ftpd.conf"]