Skip to content

Dockerfile fixes #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ FROM alpine:edge
MAINTAINER Code Climate <[email protected]>

WORKDIR /usr/src/app
COPY . /usr/src/app

# Install PHP
RUN apk --update add \
php7 \
php7-common \
php7-ctype \
php7-dom \
Expand All @@ -22,13 +21,17 @@ RUN apk --update add \
rm /var/cache/apk/* && \
ln -s /usr/bin/php7 /usr/bin/php

COPY composer.* ./

RUN apk --update add curl && \
curl -sS https://getcomposer.org/installer | php && \
./composer.phar install && \
apk del curl && \
rm /usr/src/app/composer.phar \
/var/cache/apk/*

COPY bin/build-content ./bin/build-content

# Build Content
RUN apk --update add build-base ca-certificates ruby ruby-dev && \
gem install json httparty --no-rdoc --no-ri && \
Expand All @@ -37,6 +40,8 @@ RUN apk --update add build-base ca-certificates ruby ruby-dev && \
apk del build-base ca-certificates ruby ruby-dev && \
rm /var/cache/apk/*

COPY . ./

RUN adduser -u 9000 -D app
RUN chown -R app:app .

Expand Down