mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2025-08-06 22:27:41 +02:00
Update to Alpine 3.17
Removes deprecated npm option, sets user to nbxyz for tftpd, adds script for testing build
This commit is contained in:
parent
aba0102365
commit
a3fc61bdcc
@ -1,4 +1,4 @@
|
||||
FROM alpine:3.16
|
||||
FROM alpine:3.17
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@ -44,7 +44,6 @@ RUN \
|
||||
tar xf \
|
||||
/tmp/webapp.tar.gz -C \
|
||||
/app/ --strip-components=1 && \
|
||||
npm config set unsafe-perm true && \
|
||||
npm install --prefix /app
|
||||
|
||||
ENV TFTPD_OPTS=''
|
||||
|
@ -23,6 +23,7 @@ priority = 3
|
||||
|
||||
[program:in.tftpd]
|
||||
command=/usr/sbin/in.tftpd -Lvvv --user nbxyz --secure %(ENV_TFTPD_OPTS)s /config/menus
|
||||
user=nbxyz
|
||||
stdout_logfile=/config/tftpd.log
|
||||
redirect_stderr=true
|
||||
priority = 4
|
||||
|
6
scripts/shell.sh
Executable file
6
scripts/shell.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo Building local core environment image...
|
||||
docker build -t docker-netbootxyz .
|
||||
echo Entering docker-netbootxyz shell... type exit to leave container...
|
||||
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/shell -t -i docker-netbootxyz /bin/bash
|
Loading…
Reference in New Issue
Block a user