Skip to content

Instantly share code, notes, and snippets.

@youknowcast
Last active October 26, 2023 17:53
Show Gist options
  • Save youknowcast/cb25874e945ae1ee098ada6f7fb2afd9 to your computer and use it in GitHub Desktop.
Save youknowcast/cb25874e945ae1ee098ada6f7fb2afd9 to your computer and use it in GitHub Desktop.
active_record_gem.rb on Docker
% docker build -t ar-test .
% docker run -v $(pwd):/app -it ar-test bash
root@05dacc65e044:/app# ruby active_record_gem.rb
# note:
# download active_record_gem.rb from below:
# https://github.com/rails/rails/blob/v7.1.1/guides/bug_report_templates/active_record_gem.rb
FROM ruby:3.2.2-slim-bullseye
RUN apt-get update -qq && apt-get install -y sqlite3 libsqlite3-dev build-essential vim locales
RUN gem install bundler
RUN sed -i -E 's/# (ja_JP.UTF-8)/\1/' /etc/locale.gen && locale-gen
ENV LANG ja_JP.UTF-8
WORKDIR /app
COPY . .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment