forked from qltysh/qlty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (33 loc) · 940 Bytes
/
Dockerfile
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
33
34
35
36
37
FROM alpine:3.9
WORKDIR /usr/src/app
COPY Gemfile /usr/src/app/
COPY Gemfile.lock /usr/src/app/
COPY VERSION /usr/src/app/
COPY codeclimate.gemspec /usr/src/app/
ENV CODECLIMATE_DOCKER=1 BUNDLE_SILENCE_ROOT_WARNING=1
RUN apk --no-cache upgrade && \
apk --no-cache --update add \
build-base \
ca-certificates \
git \
openssh-client \
openssl \
ruby \
ruby-bigdecimal \
ruby-bundler \
ruby-dev \
wget && \
bundle install -j 4 && \
apk del build-base && \
rm -fr /usr/share/ri
RUN wget -q -O /tmp/docker.tgz \
https://download.docker.com/linux/static/stable/x86_64/docker-17.12.1-ce.tgz && \
tar -C /tmp -xzvf /tmp/docker.tgz && \
mv /tmp/docker/docker /bin/docker && \
chmod +x /bin/docker && \
rm -rf /tmp/docker*
COPY . /usr/src/app
COPY config.yml /config.yml
VOLUME /code
WORKDIR /code
ENTRYPOINT ["/usr/src/app/bin/codeclimate"]