-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (22 loc) · 921 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (22 loc) · 921 Bytes
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
27
28
29
30
31
32
ARG CONTAINER_RUBY_VERSION
FROM ruby:$CONTAINER_RUBY_VERSION
ARG CONTAINER_PG_VERSION
RUN . /etc/os-release && \
echo "deb http://apt.postgresql.org/pub/repos/apt $VERSION_CODENAME-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc| gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg && \
apt-get update && \
apt-get install -y --fix-missing --no-install-recommends \
less \
postgresql-client-$CONTAINER_PG_VERSION && \
rm -rf /var/lib/apt/lists/*
RUN curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > /usr/local/bin/cc-reporter && \
chmod +x /usr/local/bin/cc-reporter
RUN mkdir /code
WORKDIR /code
COPY . /code
RUN gem install rubygems-bundler && \
bundle install && \
gem regenerate_binstubs
RUN rm -rf *
ENV PATH "/code/bin:$PATH"
CMD /bin/sleep infinity