forked from qltysh-archive/codeclimate-duplication
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (21 loc) · 706 Bytes
/
Dockerfile
File metadata and controls
30 lines (21 loc) · 706 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
FROM codeclimate/codeclimate-parser:b962
LABEL maintainer="Code Climate <hello@codeclimate.com>"
# Reset from base image
USER root
WORKDIR /usr/src/app/
# 3x normal default
ENV RUBY_THREAD_MACHINE_STACK_SIZE=3145728
RUN apt-get update && \
RUNLEVEL=1 apt-get install --yes --no-install-recommends \
python2.7
COPY Gemfile* ./
COPY vendor/php-parser/composer* ./vendor/php-parser/
RUN bundle install --jobs 4 --quiet && \
composer install --no-interaction --quiet --working-dir ./vendor/php-parser
COPY . ./
RUN chown -R app:app ./
USER app
# Hide deprecation warnings
ENV RUBYOPT="-W0"
ENTRYPOINT ["/usr/src/app/entrypoint"]
CMD ["/usr/src/app/bin/duplication", "/code", "/config.json"]