update docker files

This commit is contained in:
zefie
2021-08-13 01:53:39 -04:00
parent f68acdbae2
commit a63e6be54b
2 changed files with 10 additions and 3 deletions

View File

@@ -1,13 +1,13 @@
FROM node:current-alpine
RUN apk add git
RUN apk add git bash
RUN npm install -g npm@latest 2>/dev/null > /dev/null
RUN cd /opt && git clone --depth=1 https://github.com/zefie/zefie_wtvp_minisrv.git minisrv
RUN cd /opt/minisrv && git config pull.ff only
RUN cd /opt/minisrv/zefie_wtvp_minisrv && npm install
COPY ./run.sh /opt/minisrv/zefie_wtvp_minisrv/run.sh
RUN chmod +x /opt/minisrv/zefie_wtvp_minisrv/run.sh
RUN chmod 755 /opt/minisrv/zefie_wtvp_minisrv/run.sh
WORKDIR /opt/minisrv/zefie_wtvp_minisrv
CMD ./run.sh

View File

@@ -1,3 +1,10 @@
#!/bin/sh
#!/bin/bash
do_exit() {
exit 1
}
trap do_exit SIGINT
trap do_exit SIGTERM
git pull
npm start