From fa6b3545f9c56f7f53e19a90e6c0c192a3ca1bd7 Mon Sep 17 00:00:00 2001 From: Thor77 Date: Wed, 17 Apr 2019 08:22:10 +0200 Subject: [PATCH] Add Dockerfile --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5af2fc2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM ruby:2.6.2-alpine +RUN apk add build-base tzdata sqlite sqlite-dev && gem install tzinfo-data +WORKDIR /app +COPY Gemfile /app/Gemfile +COPY Gemfile.lock /app/Gemfile.lock +RUN bundle install --deployment --without development test +COPY . /app +ENV RAILS_ENV production +CMD bundle exec rails db:migrate && bundle exec rails s -p 3000 -b 0.0.0.0