1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

fix yarn install in dockerfile

This commit is contained in:
Sylvain 2018-11-29 18:19:59 +01:00
parent 48e0bf21a2
commit 177e087abf
2 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,7 @@
# Changelog Fab Manager
- Fix rake task fablab:es_build_projects_index for ElasticSearch > 1.7
- Fix Dockerfile: yarn was not setup correctly
# v2.7.2 2018 November 29

View File

@ -32,8 +32,6 @@ COPY Gemfile /tmp/
COPY Gemfile.lock /tmp/
RUN bundle install --binstubs
# Run Yarn
RUN yarn install
# Clean up APT when done.
#RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
@ -52,6 +50,11 @@ RUN mkdir -p /usr/src/app/tmp/pids
WORKDIR /usr/src/app
COPY docker/database.yml /usr/src/app/config/database.yml
COPY package.json /usr/src/app/package.json
COPY yarn.lock /usr/src/app/yarn.lock
# Run Yarn
RUN yarn install
COPY . /usr/src/app