Skip to content

Commit

Permalink
chore: refactor devcontainer post-install
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed May 22, 2024
1 parent 87641b7 commit 7995245
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
FROM ghcr.io/tryzealot/codespace:latest

COPY . /workspace
RUN bundle install && yarn install
7 changes: 7 additions & 0 deletions .devcontainer/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,10 @@ WORKDIR /workspace

RUN gem install bundler foreman && \
npm install --global yarn sass esbuild

COPY Gemfile Gemfile.lock package.json ./
USER root
RUN chmod a+w Gemfile.lock && mkdir node_modules && chown -R vscode:vscode /workspace
USER vscode

RUN bundle install && yarn install
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@
},

// (Optinal) Database migration.
"postCreateCommand": "rails zealot:upgrade && yarn install"
"postCreateCommand": "rails zealot:upgrade"
}

0 comments on commit 7995245

Please sign in to comment.