update docker files
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
FROM node:current-alpine
|
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 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 && 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 && git config pull.ff only
|
||||||
RUN cd /opt/minisrv/zefie_wtvp_minisrv && npm install
|
RUN cd /opt/minisrv/zefie_wtvp_minisrv && npm install
|
||||||
|
|
||||||
COPY ./run.sh /opt/minisrv/zefie_wtvp_minisrv/run.sh
|
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
|
WORKDIR /opt/minisrv/zefie_wtvp_minisrv
|
||||||
CMD ./run.sh
|
CMD ./run.sh
|
||||||
|
|||||||
@@ -1,3 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
|
do_exit() {
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
trap do_exit SIGINT
|
||||||
|
trap do_exit SIGTERM
|
||||||
|
|
||||||
git pull
|
git pull
|
||||||
npm start
|
npm start
|
||||||
|
|||||||
Reference in New Issue
Block a user