Skip to content

Instantly share code, notes, and snippets.

@tilsammans
Last active August 28, 2018 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tilsammans/01b947ed2a62c1c71cb6a7d4d35b07aa to your computer and use it in GitHub Desktop.
Save tilsammans/01b947ed2a62c1c71cb6a7d4d35b07aa to your computer and use it in GitHub Desktop.
Source for our Rails CI containers. Repo at https://github.com/spacebabies/rails-ci
FROM ruby:2.5.1-slim
MAINTAINER Space Babies <info@spacebabies.nl>
LABEL description="Continuous Integration of our Rails apps"
# Install dependencies:
# - libxml2, zlib1g-dev, liblzma-dev: nokogiri and friends
# - libpq-dev: needed to build `pg`
# - libmysqlclient-dev: needed to build `mysql2`
RUN apt-get update --quiet && apt-get install --no-install-recommends --quiet --yes \
build-essential \
locales \
patch \
libxml2 \
libxml2-dev \
zlib1g-dev \
liblzma-dev \
nodejs \
tzdata \
default-libmysqlclient-dev \
libpq-dev \
git \
pdftk \
imagemagick \
httpie && \
rm -rf /var/lib/apt/lists/*
# Generate UTF-8 and make it default locale.
RUN dpkg-reconfigure locales && \
locale-gen C.UTF-8 && \
/usr/sbin/update-locale LANG=C.UTF-8
# Our choices go in ENV for everyone to enjoy.
ENV LC_ALL C.UTF-8
ENV TZ=UTC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment