Skip to content

Commit

Permalink
npm install in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
cookie-s committed Oct 26, 2022
1 parent f60785b commit 175a84d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion logger/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ RUN set -x && \

COPY Gemfile ${SRCDIR}/
COPY Gemfile.lock ${SRCDIR}/
RUN cd ${SRCDIR} && bundle install

WORKDIR ${SRCDIR}

RUN bundle install

CMD /wait-for-it.sh -t 0 mongo:27017 -- /wait-for-it.sh -t 0 elasticsearch:9200 -- bundle exec ruby logger/logger.rb
6 changes: 5 additions & 1 deletion viewer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,14 @@ RUN set -x && \

COPY Gemfile ${SRCDIR}/
COPY Gemfile.lock ${SRCDIR}/
RUN cd ${SRCDIR} && bundle install

WORKDIR ${SRCDIR}

RUN bundle install
COPY viewer/package.json ${SRCDIR}/viewer/
COPY viewer/package-lock.json ${SRCDIR}/viewer/
RUN cd ${SRCDIR}/viewer && npm install


CMD ./viewer/setup.sh && bundle exec puma viewer/config.ru -C viewer/puma.rb -p 9292

Expand Down
1 change: 0 additions & 1 deletion viewer/setup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/sh

cd `dirname $0`
npm install
npm run build

0 comments on commit 175a84d

Please sign in to comment.