-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
27 lines (22 loc) · 978 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ruby:2.6.7
LABEL maintainer="[email protected]"
# Stolen from https://github.com/jfroom/docker-compose-rails-selenium-example
# Ugh, Yarn needs a newer version of Node
# See: https://github.com/yarnpkg/yarn/issues/6914#issuecomment-454165516
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash \
&& apt-get update && apt-get install -qq -y --no-install-recommends \
build-essential nodejs \
# Rails 5.1 expects Yarn to be a thing \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
&& apt-get install apt-transport-https -y \
&& apt-get update && apt-get install -y yarn
RUN mkdir -p /app
WORKDIR /app
COPY . .
# Add app files into docker image
COPY ./docker-entrypoint.sh /
RUN chmod +x /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
RUN gem update --system ; gem install bundler
RUN bundle check || bundle install