Skip to content

Bump up dependencies #32

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 2 commits into from
Dec 22, 2016
Merged
Show file tree
Hide file tree
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
50 changes: 34 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,47 @@
FROM alpine:3.3
FROM alpine:edge

MAINTAINER Code Climate <[email protected]>

WORKDIR /usr/src/app
COPY composer.json /usr/src/app/
COPY composer.lock /usr/src/app/

RUN apk --update add git php-common php-xml php-dom php-ctype php-iconv \
php-json php-pcntl php-phar php-openssl php-opcache php-sockets curl \
build-base ruby-dev ruby ruby-bundler && \
gem install httparty --no-rdoc --no-ri && \
gem install json --no-rdoc --no-ri && \
curl -sS https://getcomposer.org/installer | php && \
/usr/src/app/composer.phar install && \
apk del build-base

COPY . /usr/src/app

# Install PHP
RUN apk --update add \
php7-common \
php7-ctype \
php7-dom \
php7-iconv \
php7-json \
php7-mbstring \
php7-opcache \
php7-openssl \
php7-pcntl \
php7-phar \
php7-sockets \
php7-xml && \
rm /var/cache/apk/* && \
ln -s /usr/bin/php7 /usr/bin/php

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/*

# Build Content
RUN apk --update add build-base ca-certificates ruby ruby-dev && \
gem install json httparty --no-rdoc --no-ri && \
./bin/build-content && \
rm -rf $( gem environment gemdir ) && \
apk del build-base ca-certificates ruby ruby-dev && \
rm /var/cache/apk/*

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

USER app

RUN ./bin/build-content

WORKDIR /code
VOLUME /code

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"require": {
"phpmd/phpmd": "2.3.2",
"barracudanetworks/forkdaemon-php": "1.0.*"
"phpmd/phpmd": "~2.3",
"barracudanetworks/forkdaemon-php": "~1.0.7"
},
"require-dev": {
"phpunit/phpunit": "5.3.*"
"phpunit/phpunit": "~5.3"
}
}
Loading