Skip to content

Commit

Permalink
chore: fix devcontainer image
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed May 22, 2024
1 parent b695f91 commit 0af3ea5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
FROM ghcr.io/tryzealot/codespace:latest

COPY . /workspace
RUN gem install bundler && \
bundle install
RUN bundle install && yarn install
13 changes: 4 additions & 9 deletions .devcontainer/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ FROM mcr.microsoft.com/vscode/devcontainers/base:${VARIANT}
ARG USER_UID=1000
ARG USER_GID=$USER_UID
RUN if [ "$USER_GID" != "$USER_UID" ] || [ "$USER_UID" != "1000" ]; then \
groupmod --gid $USER_GID vscode \
&& usermod --uid $USER_UID --gid $USER_GID vscode \
&& chmod -R $USER_UID:$USER_GID /home/vscode; \
groupmod --gid $USER_GID vscode && \
usermod --uid $USER_UID --gid $USER_GID vscode && \
chmod -R $USER_UID:$USER_GID /home/vscode; \
fi

ARG DEBIAN_FRONTEND=noninteractive
Expand Down Expand Up @@ -64,10 +64,5 @@ RUN export RUBY_CONFIGURE_OPTS="--enable-yjit" && \

WORKDIR /workspace

COPY Gemfile Gemfile.lock ./
RUN gem install bundler foreman && \
bundle install

COPY package.json yarn.lock ./
RUN npm install --global yarn sass esbuild && \
yarn install
npm install --global yarn sass esbuild

0 comments on commit 0af3ea5

Please sign in to comment.