RailsアプリをDockerで動かすときのDockerfile 2019-06-02 08:11 シンプルなRailsアプリを作って、それをDockerで動かすためのDockerfileを書いてみた。 https://github.com/okonomi/rails-docker-sandbox こんなかんじ: FROM ruby:2.6.3-alpine3.9 AS builder ENV RAILS_ENV production WORKDIR /app RUN apk add --update --no-cache \ build-base \ libxml2-dev \ libxslt-dev \ sqlite-dev \ nodejs \ yarn \ tzdata # install gems RUN gem install bundler COPY Gemfile . CO