Update Docker setup with new Node, Yarn, etc

This commit is contained in:
Rico Sta. Cruz 2019-01-20 14:11:35 +08:00
parent 11b4c983a1
commit 07d6304a0f
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
2 changed files with 11 additions and 7 deletions

View File

@ -1,9 +1,11 @@
FROM ruby:2.5.1-alpine3.7
RUN apk update && apk add --no-cache nodejs build-base
RUN apk add yarn --no-cache --repository http://dl-3.alpinelinux.org/alpine/v3.8/community/ --allow-untrusted
FROM ruby:2.5.1
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
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-get update -qq && apt-get install -qq --no-install-recommends \
nodejs \
yarn \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /app
WORKDIR /app
# COPY Gemfile Gemfile.lock ./
# RUN bundle install -j 4
# COPY package.json yarn.lock ./
# RUN yarn

View File

@ -5,6 +5,7 @@ services:
volumes:
- .:/app
- rubygems:/usr/local/bundle
- node_modules:/app/node_modules
ports:
- '4001:4001'
- '35729:35729'
@ -12,3 +13,4 @@ services:
volumes:
rubygems:
node_modules: