File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ FROM alpine:edge
3
3
MAINTAINER Code Climate <
[email protected] >
4
4
5
5
WORKDIR /usr/src/app
6
- COPY . /usr/src/app
7
-
8
6
# Install PHP
9
7
RUN apk --update add \
10
8
php7 \
@@ -23,13 +21,18 @@ RUN apk --update add \
23
21
rm /var/cache/apk/* && \
24
22
ln -s /usr/bin/php7 /usr/bin/php
25
23
24
+ COPY composer.json /usr/src/app/composer.json
25
+ COPY composer.lock /usr/src/app/composer.lock
26
+
26
27
RUN apk --update add curl && \
27
28
curl -sS https://getcomposer.org/installer | php && \
28
29
./composer.phar install && \
29
30
apk del curl && \
30
31
rm /usr/src/app/composer.phar \
31
32
/var/cache/apk/*
32
33
34
+ COPY bin/build-content /usr/src/app/bin/build-content
35
+
33
36
# Build Content
34
37
RUN apk --update add build-base ca-certificates ruby ruby-dev && \
35
38
gem install json httparty --no-rdoc --no-ri && \
@@ -38,6 +41,8 @@ RUN apk --update add build-base ca-certificates ruby ruby-dev && \
38
41
apk del build-base ca-certificates ruby ruby-dev && \
39
42
rm /var/cache/apk/*
40
43
44
+ COPY . /usr/src/app
45
+
41
46
RUN adduser -u 9000 -D app
42
47
RUN chown -R app:app .
43
48
You can’t perform that action at this time.
0 commit comments