Skip to content

docker image のサイズ削減など#10

Open
earlgray283 wants to merge 10 commits into
mainfrom
refactor-docker
Open

docker image のサイズ削減など#10
earlgray283 wants to merge 10 commits into
mainfrom
refactor-docker

Conversation

@earlgray283
Copy link
Copy Markdown
Contributor

@earlgray283 earlgray283 commented Dec 25, 2021

主な変更点

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

Comment thread Dockerfile
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
Copy Markdown
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.

1 participant