-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
45 lines (32 loc) · 1.25 KB
/
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
38
39
40
41
42
43
44
45
FROM elixir:alpine
MAINTAINER Michał Kalbarczyk "[email protected]"
RUN apk add git bash
RUN adduser -D -u 9000 app
RUN mkdir -p /usr/src/app
COPY . /usr/src/app/codeclimate
WORKDIR /usr/src/app
RUN chown -R app:app /usr/src/app
USER app
ENV MIX_ENV prod
RUN mix local.hex --force
RUN git clone https://github.com/michalmuskala/jason
RUN cd jason && git checkout tags/v1.1.1
RUN cd jason && MIX_ENV=prod mix deps.get --force
RUN cd jason && MIX_ENV=prod mix archive.build --force
RUN cd jason && MIX_ENV=prod mix archive.install --force
RUN git clone https://github.com/rrrene/bunt
RUN cd bunt && git checkout tags/v0.2.0
RUN cd bunt && MIX_ENV=prod mix deps.get --force
RUN cd bunt && MIX_ENV=prod mix archive.build --force
RUN cd bunt && MIX_ENV=prod mix archive.install --force
RUN git clone https://github.com/fazibear/credo
RUN cd credo && git checkout codeclimate
RUN cd credo && MIX_ENV=prod mix deps.get --force
RUN cd credo && MIX_ENV=prod mix archive.build --force
RUN cd credo && MIX_ENV=prod mix archive.install --force
RUN cd codeclimate && MIX_ENV=prod mix deps.get --force
RUN cd codeclimate && MIX_ENV=prod mix archive.build --force
RUN cd codeclimate && MIX_ENV=prod mix archive.install --force
VOLUME /code
#WORKDIR /code
CMD mix code_climate /code