Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby 2.6.10 → Ruby 2.7.6 #4

Draft
wants to merge 6 commits into
base: sikmi/bondo-api-docker-ruby2.6.10node8.15
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN wget -qnv https://chromedriver.storage.googleapis.com/LATEST_RELEASE -O - |
mv chromedriver /usr/bin/

#######################################################################################################################
FROM ruby:2.6.10
FROM ruby:2.7.6

RUN mkdir -p /var/log/supervisor

Expand All @@ -24,8 +24,13 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
apt-get update && \
apt-get install -y google-chrome-stable

# install node, npm, chromedriver from multistage
COPY --from=node /usr/bin/chromedriver /usr/bin/
COPY --from=node /usr/local/bin/node /usr/local/bin/
COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
RUN ln -s /usr/local/bin/node /usr/local/bin/nodejs \
&& ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \
&& ln -s /usr/local/lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx

ENV RUBYOPT -EUTF-8
ENV LANG ja_JP.UTF-8
Expand All @@ -36,8 +41,5 @@ RUN apt-get update &&\
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

RUN gem install bundler
RUN curl -0 -L https://registry.npmjs.org/npm/-/npm-6.4.1.tgz | tar zxvf - && cd package && ./configure && make && make install

WORKDIR /usr/src/app
RUN rm -rf ./package
# install bundler
RUN gem install bundler:2.3.19