Add Dockerfile

This commit is contained in:
Thor77 2019-04-17 08:22:10 +02:00
parent b8ebfb6858
commit fa6b3545f9
No known key found for this signature in database
GPG Key ID: 5051E71B46AA669A
1 changed files with 9 additions and 0 deletions

9
Dockerfile Normal file
View File

@ -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