docker/production.dockerfile

Summary

Maintainability
Test Coverage
FROM ruby:2.5.3-alpine3.8
MAINTAINER Joseph Nelson Valeros

RUN apk add --no-cache --update build-base \
                                linux-headers \
                                git \
                                postgresql-dev \
                                nodejs \
                                tzdata

WORKDIR /app

RUN gem install bundler
ADD Gemfile Gemfile.lock ./
RUN bundle install

COPY . .

ADD config/database.example.yml config/database.yml

EXPOSE 3000

CMD ["rails", "server", "-b", "0.0.0.0"]