Sha256: 6bf7921b609cc9109290dc372488949148176b212b8ec2b5a69b211afde69bca

Contents?: true

Size: 870 Bytes

Versions: 1

Compression:

Stored size: 870 Bytes

Contents

FROM ruby:2.6.4
# FROM nning2/truffleruby:latest
RUN apt-get update -qq && apt-get install -y nodejs postgresql-client

RUN apt-get install -y libproj-dev
RUN apt-get install -y libgeos-dev
RUN apt-get install -y graphviz
RUN apt-get install -y graphviz-dev
# RUN apt-get install -y elasticsearch
# RUN apt-get install -y elasticsearch-dev

RUN mkdir /myapp
WORKDIR /myapp
COPY Gemfile /myapp/Gemfile
COPY Gemfile.lock /myapp/Gemfile.lock
RUN bundle install

COPY . /myapp

RUN rails db:migrate

# how to make the following line idempotent?
# RUN rails db:seed
RUN rails runner "Comment.reindex"

RUN rm -f /myapp/tmp/pids/server.pid
# Add a script to be executed every time the container starts.
COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
EXPOSE 3000

# Start the main process.
CMD ["rails", "server", "-b", "0.0.0.0"]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jester-data-8.0.0 Dockerfile