# Docker For Rails Developers - Chapter 7 Playing Nice With JavaScript - Installing Webpacker

**URL:** <https://forum.devtalk.com/t/docker-for-rails-developers-chapter-7-playing-nice-with-javascript-installing-webpacker/934>\
**Category:** PragProg Customers\
**Tags:** pragprog, book-docker-for-rails-developers, docker\
**Created:** [29 June 2020 14:17 UTC](https://forum.devtalk.com/t/docker-for-rails-developers-chapter-7-playing-nice-with-javascript-installing-webpacker/934 "2020-06-29T14:17:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Travis](https://forum.devtalk.com/user_avatar/forum.devtalk.com/travis/32/573_2.png) [@Travis](https://forum.devtalk.com/u/Travis)\
**Post date:** [29 June 2020 14:17 UTC](https://forum.devtalk.com/t/docker-for-rails-developers-chapter-7-playing-nice-with-javascript-installing-webpacker/934/1 "2020-06-29T14:17:35Z")

</div>

Yarn installation has changed since this book has been written. We no longer need to specify the setup scripts or address the dependency issue mentioned by Rob.

Here is my Dockerfile working with Yarn

```auto
FROM ruby:2.6

LABEL maintainer="myemail@email.com"

RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends nodejs

RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends apt-transport-https

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt update -yqq && apt install -f yarn

COPY Gemfile* /usr/src/app/
WORKDIR /usr/src/app
RUN bundle install

COPY . /usr/src/app/

CMD ["bin/rails", "s", "-b", "0.0.0.0"]

```
