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:
Antony Messerli 2023-01-19 00:36:35 -06:00
parent aba0102365
commit a3fc61bdcc
3 changed files with 8 additions and 2 deletions

View File

@ -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=''

View File

@ -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
View 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