From 26036319ad6a9907995a808ce19ee449a08804b3 Mon Sep 17 00:00:00 2001 From: Krzysztof Szumny Date: Thu, 20 Aug 2015 14:53:11 +0200 Subject: [PATCH] fix for npm run in wrong directory --- {{cookiecutter.repo_name}}/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.repo_name}}/Dockerfile b/{{cookiecutter.repo_name}}/Dockerfile index 355102157..abfd5c1d4 100644 --- a/{{cookiecutter.repo_name}}/Dockerfile +++ b/{{cookiecutter.repo_name}}/Dockerfile @@ -29,9 +29,9 @@ RUN groupadd -r django && useradd -r -g django django ADD . /app RUN npm install -g grunt grunt-cli -RUN npm install -RUN grunt build +RUN cd /app && npm install +RUN cd /app && grunt build RUN chown -R django /app @@ -43,4 +43,4 @@ RUN chmod +x /gunicorn.sh && chown django /gunicorn.sh WORKDIR /app -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/entrypoint.sh"]