Enhance the Dockerfile entrypoint;

This commit is contained in:
Benjamin Bouvier 2016-09-04 19:41:33 +02:00
parent ca6dbcfbd5
commit 84c2b37469
2 changed files with 11 additions and 2 deletions

View File

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

@ -0,0 +1,9 @@
#!/bin/bash
cd /opt/gitlab-to-irc
git pull origin master
npm install
node ./index.js