{"categories":["Ruby"],"type":"rich","blog_title":"Web\u958b\u767a\u306b\u304a\u3051\u308b\u77e5\u898b\u5171\u6709\u7cfb\u30da\u30fc\u30b8","published":"2024-08-23 20:21:26","image_url":null,"title":"Ruby\u3092Docker\u3067\u8d77\u52d5","blog_url":"https://job-info.hateblo.jp/","author_name":"tomotomo1129","provider_name":"Hatena Blog","version":"1.0","url":"https://job-info.hateblo.jp/entry/2024/08/23/202126","author_url":"https://blog.hatena.ne.jp/tomotomo1129/","width":"100%","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjob-info.hateblo.jp%2Fentry%2F2024%2F08%2F23%2F202126\" title=\"Ruby\u3092Docker\u3067\u8d77\u52d5 - Web\u958b\u767a\u306b\u304a\u3051\u308b\u77e5\u898b\u5171\u6709\u7cfb\u30da\u30fc\u30b8\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","description":"Ruby\u3092Docker\u3067\u8d77\u52d5 Ruby\u3092Docker\u3067\u8d77\u52d5 Ruby\u3092Docker\u3067\u8d77\u52d5\u3059\u308b\u305f\u3081\u306e\u624b\u9806\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u30021. Dockerfile\u306e\u4f5c\u6210: Ruby\u30a4\u30e1\u30fc\u30b8\u3092\u4f7f\u7528\u3059\u308bDockerfile\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 # Dockerfile FROM ruby:3.2 # \u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u8a2d\u5b9a WORKDIR /app # \u5fc5\u8981\u306b\u5fdc\u3058\u3066Gemfile\u3092\u30b3\u30d4\u30fc\u3057\u3001gem\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b COPY Gemfile Gemfile.lock ./ RUN bundle install # \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30c6\u30ca\u306b\u30b3\u30d4\u30fc COPY . . # \u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6307\u5b9a CMD [\"irb\"]2\u2026"}