forked from 3dbionotes-community/3DBIONOTES
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
milorad
committed
May 23, 2024
1 parent
093c205
commit c1ae15b
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |