Skip to content

Conversation

@earlgray283
Copy link
Contributor

@earlgray283 earlgray283 commented Dec 25, 2021

主な変更点

  • apt のキャッシュ、gzip、zip などを削除するようにしてサイズ削減を図った(2GB弱削減した)
  • hadolint を導入して Dockerfile をいい感じにした
  • PATH を Dockerfile の ENV で適用するようにした

bash -c exec $SHELL -l && \
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build && \
export PATH="$HOME/.rbenv/bin:$PATH" && rbenv install 2.7.2 && rbenv global 2.7.2
RUN \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これだと ruby コマンドが使えない><

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants