Skip to content

Commit

Permalink
Merge pull request #15 from nspalo/development
Browse files Browse the repository at this point in the history
First release
  • Loading branch information
nspalo authored Sep 7, 2021
2 parents d9976c1 + 4c72ec9 commit e18cfef
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
14 changes: 9 additions & 5 deletions docker/containers/composer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Install Composer
FROM composer:2.1.5
# Pull from PHP from previous Dockerfile - php/Dockerfile
# - see docker/docker-compose.yml for more info
# - use the image tag php:php-7.4-fpm-alpine
FROM php:php-7.4-fpm-alpine

# Copy PHP from previous Dockerfile with a tag of php:php-7.4-fpm-alpine
# See docker/docker-compose.yml
COPY --from=php:php-7.4-fpm-alpine /usr/local/bin/php /usr/local/bin/php
# Install Composer 2.1.5
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=2.1.5

# Add composer bin files path to environment variable
RUN export PATH=$PATH":/usr/bin"
4 changes: 3 additions & 1 deletion docker/containers/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@
FROM php:7.4-fpm-alpine

# Install PHP Extension
RUN docker-php-ext-install pdo pdo_mysql
RUN apk --no-cache add zip libzip-dev \
&& docker-php-ext-configure zip \
&& docker-php-ext-install zip pdo pdo_mysql
1 change: 0 additions & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ services:
context: .
dockerfile: containers/composer/Dockerfile
image: composer:composer-2.1.5
#image: composer:2.1.5
working_dir: /var/www/html
volumes:
- "${PATH_PROJECT_SOURCE}:/var/www/html"
Expand Down

0 comments on commit e18cfef

Please sign in to comment.