Open issei-m opened 2 years ago
gem 'debase', "~> 0.2.5.beta2" allowed it to install
if bundler >2.2 need to change "bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32" to bundle lock --add-platform x86_64-linux" in docker entrypoint.
gem 'debase', "~> 0.2.5.beta2" allowed it to install
if bundler >2.2 need to change "bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32" to bundle lock --add-platform x86_64-linux" in docker entrypoint.
Both don't seem to work for me with the docker base image: mcr.microsoft.com/vscode/devcontainers/ruby:3-bullseye
Dockerfile:
# syntax = docker/dockerfile:1.0-experimental
# [Choice] Ruby version: 2, 2.7, 2.6, 2.5
ARG VARIANT=3-bullseye
FROM mcr.microsoft.com/vscode/devcontainers/ruby:${VARIANT}
ARG OWNER=vscode
# Install Rails
RUN gem install rails webdrivers
# Install time consuming gems
RUN gem install sassc
ARG NODE_VERSION="lts/*"
RUN if [ "${NODE_VERSION}" != "none" ]; then su ${OWNER} -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
# install yarn
RUN su ${OWNER} -c "source /usr/local/share/nvm/nvm.sh && npm install -g yarn" 2>&1
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends zbar-tools ffmpeg software-properties-common \
# && apt-get -y install --no-install-recommends curl \
&& apt-get -y install --no-install-recommends python
RUN mkdir -p /workspace /usr/local/bundle/bundler \
&& chown -R ${OWNER}:${OWNER} /workspace /usr/local/bundle/ /usr/local/rvm/gems
USER ${OWNER}
WORKDIR /workspace
COPY Gemfile Gemfile.lock ./
RUN gem install bundler foreman && bundler install