mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2025-08-07 06:37:43 +02:00
add support for passing additional options to tftpd
This commit is contained in:
parent
4dcfa2d248
commit
7e4f4d465a
@ -31,7 +31,7 @@ RUN \
|
||||
groupmod -g 1000 users && \
|
||||
useradd -u 911 -U -d /config -s /bin/false nbxyz && \
|
||||
usermod -G users nbxyz && \
|
||||
mkdir /app \
|
||||
mkdir /app \
|
||||
/config \
|
||||
/defaults && \
|
||||
if [ -z ${WEBAPP_VERSION+x} ]; then \
|
||||
@ -47,10 +47,11 @@ RUN \
|
||||
npm config set unsafe-perm true && \
|
||||
npm install --prefix /app
|
||||
|
||||
ENV TFTPD_OPTS=''
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
COPY root/ /
|
||||
|
||||
# default command
|
||||
CMD ["sh","/start.sh"]
|
||||
|
||||
|
@ -22,7 +22,7 @@ directory=/app
|
||||
priority = 3
|
||||
|
||||
[program:in.tftpd]
|
||||
command=/usr/sbin/in.tftpd -Lvvv --user nbxyz --secure /config/menus
|
||||
command=/usr/sbin/in.tftpd -Lvvv --user nbxyz --secure %(ENV_TFTPD_OPTS)s /config/menus
|
||||
stdout_logfile=/config/tftpd.log
|
||||
redirect_stderr=true
|
||||
priority = 4
|
||||
|
Loading…
Reference in New Issue
Block a user