File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -16,3 +16,10 @@ RUN curl -sL https://github.com/nodenv/node-build/archive/master.tar.gz | tar xz
1616 rm -rf /tmp/node-build-master
1717
1818ENV RAILS_ENV="test"
19+
20+ ARG INSTALL_BROWSER="false"
21+ RUN if [ "$INSTALL_BROWSER" = "true" ]; then \
22+ apt-get update -qq && \
23+ apt-get install --no-install-recommends -y chromium chromium-driver && \
24+ rm -rf /var/lib/apt/lists /var/cache/apt/archives; \
25+ fi
Original file line number Diff line number Diff line change @@ -13,3 +13,5 @@ if [ -z "${NODE_VERSION:-}" ]; then
1313fi
1414
1515docker build --build-arg RUBY_VERSION=" $RUBY_VERSION " --build-arg NODE_VERSION=" $NODE_VERSION " -t " ${DOCKER_REPO} :ruby-${RUBY_VERSION} -node-${NODE_VERSION} " .
16+
17+ docker build --build-arg INSTALL_BROWSER=true --build-arg RUBY_VERSION=" $RUBY_VERSION " --build-arg NODE_VERSION=" $NODE_VERSION " -t " ${DOCKER_REPO} :ruby-${RUBY_VERSION} -node-${NODE_VERSION} -browser" .
Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ if [ -z "${NODE_VERSION:-}" ]; then
1313fi
1414
1515docker push " ${DOCKER_REPO} :ruby-${RUBY_VERSION} -node-${NODE_VERSION} "
16+ docker push " ${DOCKER_REPO} :ruby-${RUBY_VERSION} -node-${NODE_VERSION} -browser"
You can’t perform that action at this time.
0 commit comments