Skip to content

Commit

Permalink
update dockerfile with yarn build
Browse files Browse the repository at this point in the history
  • Loading branch information
milorad committed May 23, 2024
1 parent 093c205 commit c1ae15b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
FROM ruby:3.3.1

RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
RUN apt-get update -qq && apt-get install -y apt-transport-https ca-certificates
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs yarn

WORKDIR /app
COPY Gemfile ./Gemfile
COPY Gemfile.lock ./Gemfile.lock
RUN bundle install
COPY . /app/
COPY config/database.example.yml /app/config/database.yml
COPY config/secrets.example.yml /app/config/secrets.yml
COPY config/secrets.example.yml /app/config/secrets.yml
RUN cd app/assets/javascripts/3dbio_viewer && yarn install && yarn build
RUN cd app/assets/javascripts/covid19 && yarn install && yarn build

0 comments on commit c1ae15b

Please sign in to comment.