Sha256: efadff04caa6de7345cc4b581ebaf2b514094c32f594851035e4459a34157a5e

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

FROM ruby:2.4-alpine3.4
MAINTAINER Jurgens du Toit <jurgens@datatools.io>

EXPOSE 9292
# Add your certificates to the project and uncomment the following lines to enable SSL
# COPY privkey.pem /usr/src/app
# COPY fullchain.pem /usr/src/app
# EXPOSE 9293

WORKDIR /usr/src/app
RUN apk add --update \
  build-base \
  libxml2-dev \
  libxslt-dev \
  openssh \
  openssl \
  openssl-dev \
  postgresql-dev \
  && rm -rf /var/cache/apk/* \
  && mkdir /root/.ssh \
  && mkdir /usr/src/app/config \
  && touch /var/log/cron.log \
  && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts \
  && gem install bundler

ADD views /usr/src/app/views
COPY config.ru /usr/src/app/
COPY config/settings.yml /usr/src/app/config/
COPY config/puma.rb /usr/src/app/config/
COPY Gemfile.deploy /usr/src/app/Gemfile
COPY Gemfile.deploy.lock /usr/src/app/Gemfile.lock
COPY Rakefile /usr/src/app/
COPY startup.sh /

RUN bundle install --deployment --without=test development \
  && bundle exec rake ditty:prep \
  && chmod 755 /startup.sh

ENV APP_ROOT="/usr/src/app"
ENV RACK_ENV="production"

ENTRYPOINT ["/startup.sh"]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
proxes-0.9.7 Dockerfile