Install git from stretch-backports

This commit is contained in:
Ash McKenzie 2018-10-15 17:10:26 +11:00
parent 75b6ed8d2d
commit 6d0f030aa7
No known key found for this signature in database
GPG Key ID: A1253B4953E8D3E6
1 changed files with 11 additions and 1 deletions

View File

@ -2,11 +2,21 @@ FROM ruby:2.4-stretch
LABEL maintainer "Grzegorz Bizon <grzegorz@gitlab.com>"
ENV DEBIAN_FRONTEND noninteractive
##
# Add support for stretch-backports
#
RUN echo "deb http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list
##
# Update APT sources and install some dependencies
#
RUN sed -i "s/httpredir.debian.org/ftp.us.debian.org/" /etc/apt/sources.list
RUN apt-get update && apt-get install -y wget git unzip xvfb
RUN apt-get update && apt-get install -y wget unzip xvfb
##
# Install some packages from backports
#
RUN apt-get -y -t stretch-backports install git
##
# Install Docker