Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/gruntworker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@rebertia.com>2015-04-30 00:30:51 +0300
committerChris Rebert <code@rebertia.com>2015-04-30 00:38:07 +0300
commit3a438d53a7a39044804febf291d9a768059dbacf (patch)
treec8ab2aa88ab94db66993642e786bdeb675d56c07
parent74940bcd6dea420f7cfde06d6ba1fc594fc4f473 (diff)
/app => /opt/gruntworker
-rw-r--r--Dockerfile7
-rwxr-xr-xgruntworker.sh2
2 files changed, 5 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index be16124..807c37d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -13,8 +13,9 @@ RUN ["npm", "install", "-g", "grunt-cli"]
RUN ["useradd", "gruntworker"]
-ADD gruntworker.py /app/gruntworker.py
-ADD gruntworker.sh /app/gruntworker.sh
+RUN ["mkdir", "-p", "/opt/gruntworker"]
+ADD gruntworker.py /opt/gruntworker/gruntworker.py
+ADD gruntworker.sh /opt/gruntworker/gruntworker.sh
ADD git-repo /git-repo
# Setup SSH keys
@@ -38,4 +39,4 @@ RUN ["git", "config", "user.name", "Bootstrap's Grunt bot"]
RUN ["git", "config", "user.email", "twbs-grunt@users.noreply.github.com"]
RUN ["npm", "install"]
-ENTRYPOINT ["/app/gruntworker.sh"]
+ENTRYPOINT ["/opt/gruntworker/gruntworker.sh"]
diff --git a/gruntworker.sh b/gruntworker.sh
index 04dedd8..a904937 100755
--- a/gruntworker.sh
+++ b/gruntworker.sh
@@ -1,2 +1,2 @@
#!/bin/sh
-flock -xn /var/lock/gruntworker /app/gruntworker.py
+flock -xn /var/lock/gruntworker /opt/gruntworker/gruntworker.py