-
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.
Merge branch 'main' into use-dl-viewer
- Loading branch information
Showing
1 changed file
with
2 additions
and
20 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,33 +1,15 @@ | ||
FROM ruby:2.6 | ||
|
||
RUN gem install bundler | ||
|
||
RUN apt-get update -qq | ||
# Add https support to apt to download yarn & newer node | ||
RUN apt-get install -y apt-transport-https | ||
|
||
# Add yarn repo and install along with other rails deps | ||
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 | ||
RUN apt-get install mariadb-client build-essential libpq-dev yarn nodejs chromium-driver libatk-bridge2.0-0 libgtk-3.0 -y | ||
|
||
WORKDIR /ursus | ||
|
||
# Install Ruby Gems | ||
ENV BUNDLE_PATH /usr/local/bundle | ||
COPY Gemfile ./Gemfile | ||
COPY Gemfile.lock ./Gemfile.lock | ||
RUN bundle install | ||
|
||
# node stuff is currently dev only | ||
# # Install node packages | ||
# COPY ./package.json ./package.json | ||
# COPY ./yarn.lock ./yarn.lock | ||
# RUN yarn install --frozen-lockfile | ||
|
||
# Add sinaimanuscripts site | ||
# COPY / /sinai | ||
CMD ["sh", "./start-sinai.sh"] | ||
CMD ["bundle", "exec", "rails", "s", "-b", "0.0.0.0"] | ||
|
||
EXPOSE 3000 | ||
EXPOSE 3000 |