File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 11# Base image
2- ARG RUBY_IMAGE
2+ ARG RUBY_IMAGE=2.4
33FROM ${RUBY_IMAGE}
44
5+ ARG RUBY_IMAGE
6+
57# Env arguments
68ENV \
79 APP_WORKDIR="/var/app" \
@@ -24,6 +26,12 @@ COPY build/ /usr/local/bin/
2426# Reset to root user
2527USER root
2628
29+ # Fix debian archive for old ruby versions
30+ RUN if [ ${RUBY_IMAGE} = ruby:2.4 ] || [ ${RUBY_IMAGE} = elasticobservability/jruby:9.2-13-jdk ]; then \
31+ sed -i 's|http://deb\. debian\. org/debian|https://archive\. debian\. org/debian|g' /etc/apt/sources.list && \
32+ sed -i 's|http://security\. debian\. org/debian-security|https://archive\. debian\. org/debian-security|g' /etc/apt/sources.list; \
33+ fi
34+
2735# Install dependencies and upgrade ruby system
2836RUN \
2937 apt-get update > /dev/null \
You can’t perform that action at this time.
0 commit comments