Update Docker setup with new Node, Yarn, etc
This commit is contained in:
parent
11b4c983a1
commit
07d6304a0f
16
Dockerfile
16
Dockerfile
|
@ -1,9 +1,11 @@
|
||||||
FROM ruby:2.5.1-alpine3.7
|
FROM ruby:2.5.1
|
||||||
RUN apk update && apk add --no-cache nodejs build-base
|
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
|
||||||
RUN apk add yarn --no-cache --repository http://dl-3.alpinelinux.org/alpine/v3.8/community/ --allow-untrusted
|
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
|
RUN mkdir -p /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
# COPY Gemfile Gemfile.lock ./
|
|
||||||
# RUN bundle install -j 4
|
|
||||||
# COPY package.json yarn.lock ./
|
|
||||||
# RUN yarn
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
- rubygems:/usr/local/bundle
|
- rubygems:/usr/local/bundle
|
||||||
|
- node_modules:/app/node_modules
|
||||||
ports:
|
ports:
|
||||||
- '4001:4001'
|
- '4001:4001'
|
||||||
- '35729:35729'
|
- '35729:35729'
|
||||||
|
@ -12,3 +13,4 @@ services:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
rubygems:
|
rubygems:
|
||||||
|
node_modules:
|
||||||
|
|
Loading…
Reference in New Issue