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
33MAINTAINER Code Climate <
[email protected] >
44
55WORKDIR /usr/src/app
6- COPY . /usr/src/app
7-
86# Install PHP
97RUN apk --update add \
108 php7 \
@@ -23,13 +21,18 @@ RUN apk --update add \
2321 rm /var/cache/apk/* && \
2422 ln -s /usr/bin/php7 /usr/bin/php
2523
24+ COPY composer.json /usr/src/app/composer.json
25+ COPY composer.lock /usr/src/app/composer.lock
26+
2627RUN apk --update add curl && \
2728 curl -sS https://getcomposer.org/installer | php && \
2829 ./composer.phar install && \
2930 apk del curl && \
3031 rm /usr/src/app/composer.phar \
3132 /var/cache/apk/*
3233
34+ COPY bin/build-content /usr/src/app/bin/build-content
35+
3336# Build Content
3437RUN apk --update add build-base ca-certificates ruby ruby-dev && \
3538 gem install json httparty --no-rdoc --no-ri && \
@@ -38,6 +41,8 @@ RUN apk --update add build-base ca-certificates ruby ruby-dev && \
3841 apk del build-base ca-certificates ruby ruby-dev && \
3942 rm /var/cache/apk/*
4043
44+ COPY . /usr/src/app
45+
4146RUN adduser -u 9000 -D app
4247RUN chown -R app:app .
4348
You can’t perform that action at this time.
0 commit comments