diff --git a/Dockerfile b/Dockerfile index 56f2f8b..36f8ae7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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='' diff --git a/root/etc/supervisor.conf b/root/etc/supervisor.conf index 986420e..36c2a86 100644 --- a/root/etc/supervisor.conf +++ b/root/etc/supervisor.conf @@ -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 diff --git a/scripts/shell.sh b/scripts/shell.sh new file mode 100755 index 0000000..f4960af --- /dev/null +++ b/scripts/shell.sh @@ -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