mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2025-08-07 22:57:29 +02:00
Merge pull request #11 from nicoulaj/tftpd-args
add support for passing additional options to tftpd
This commit is contained in:
commit
1fbbbddbf6
@ -31,7 +31,7 @@ RUN \
|
|||||||
groupmod -g 1000 users && \
|
groupmod -g 1000 users && \
|
||||||
useradd -u 911 -U -d /config -s /bin/false nbxyz && \
|
useradd -u 911 -U -d /config -s /bin/false nbxyz && \
|
||||||
usermod -G users nbxyz && \
|
usermod -G users nbxyz && \
|
||||||
mkdir /app \
|
mkdir /app \
|
||||||
/config \
|
/config \
|
||||||
/defaults && \
|
/defaults && \
|
||||||
if [ -z ${WEBAPP_VERSION+x} ]; then \
|
if [ -z ${WEBAPP_VERSION+x} ]; then \
|
||||||
@ -47,10 +47,11 @@ RUN \
|
|||||||
npm config set unsafe-perm true && \
|
npm config set unsafe-perm true && \
|
||||||
npm install --prefix /app
|
npm install --prefix /app
|
||||||
|
|
||||||
|
ENV TFTPD_OPTS=''
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|
||||||
# default command
|
# default command
|
||||||
CMD ["sh","/start.sh"]
|
CMD ["sh","/start.sh"]
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ directory=/app
|
|||||||
priority = 3
|
priority = 3
|
||||||
|
|
||||||
[program:in.tftpd]
|
[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
|
stdout_logfile=/config/tftpd.log
|
||||||
redirect_stderr=true
|
redirect_stderr=true
|
||||||
priority = 4
|
priority = 4
|
||||||
|
Loading…
Reference in New Issue
Block a user