Skip to content

Commit

Permalink
Added corepack and yarn to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
spolisar committed May 31, 2024
1 parent d6da1b5 commit c5d4a7c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@ WORKDIR /rails

# Install packages needed to build gems
RUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential libpq-dev curl
apt-get install --no-install-recommends -y build-essential libpq-dev curl nodejs npm && \
npm install -g corepack



COPY Gemfile Gemfile.lock ./
RUN bundle install

RUN corepack enable && \
corepack use yarn && \
yarn

# Start the server by default, this can be overwritten at runtime
EXPOSE 3000
CMD ["./bin/rails", "console"]

0 comments on commit c5d4a7c

Please sign in to comment.