Enhance the Dockerfile entrypoint;
This commit is contained in:
parent
ca6dbcfbd5
commit
84c2b37469
@ -13,6 +13,6 @@ RUN git clone https://framagit.org/bnjbvr/gitlab-to-irc
|
||||
WORKDIR /opt/gitlab-to-irc
|
||||
COPY ./config.js /opt/gitlab-to-irc/config.js
|
||||
|
||||
RUN npm install
|
||||
COPY ./docker-entrypoint.sh /opt/gitlab-to-irc/docker-entrypoint.sh
|
||||
|
||||
CMD node ./index.js
|
||||
CMD /opt/gitlab-to-irc/docker-entrypoint.sh
|
||||
|
9
docker-entrypoint.sh
Normal file
9
docker-entrypoint.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /opt/gitlab-to-irc
|
||||
|
||||
git pull origin master
|
||||
|
||||
npm install
|
||||
|
||||
node ./index.js
|
Loading…
Reference in New Issue
Block a user