Skip to content

Commit

Permalink
Viper Php 7.3 🍋
Browse files Browse the repository at this point in the history
  • Loading branch information
frohikey committed Mar 19, 2019
1 parent c969767 commit 74c330f
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
# Viper Php 7.3

![](https://img.shields.io/docker/pulls/goto10hq/viper-php-7.3.svg?style=for-the-badge&logo=docker)

Usage:

```docker pull goto10hq/viper-php-7.3```

OS:

- Debian

Basic ingredients:

- PHP 7.3.3
- Apache 2.4.25
- Node 11.1.0
- Npm 6.9.0
- Composer 1.8.4

Php extensions:

- Gd
- Zip
- Pdo MySql

# Viper Php 7.2

![](https://img.shields.io/docker/pulls/goto10hq/viper-php-7.2.svg?style=for-the-badge&logo=docker)
Expand Down Expand Up @@ -99,3 +125,9 @@ Php extensions:
- Zip
- Pdo MySql

<!--
php --version
apachectl -V
node --version
npm --version
>
24 changes: 24 additions & 0 deletions ViperPhp7.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM php:7.3-apache

RUN apt-get update && \
apt-get install -y libpng-dev && \
apt-get install -y libjpeg62-turbo-dev && \
apt-get install -y libfreetype6-dev && \
apt-get install -y libzip-dev

ENV NODE_VERSION 11.1.0
ENV NODE_DOWNLOAD_SHA 52289a646a27511f5808290357798c7ebd4b5132a8fc3bf7d5bf53183b89c668
RUN curl -SL "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.gz" --output nodejs.tar.gz \
&& echo "$NODE_DOWNLOAD_SHA nodejs.tar.gz" | sha256sum -c - \
&& tar -xzf "nodejs.tar.gz" -C /usr/local --strip-components=1 \
&& rm nodejs.tar.gz \
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs

RUN npm i npm@latest -g

RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install gd
RUN docker-php-ext-install zip
RUN docker-php-ext-install pdo_mysql

COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
1 change: 1 addition & 0 deletions ViperPhp7.3/build.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker build -t viper-php-7.3 .
4 changes: 4 additions & 0 deletions ViperPhp7.3/push.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
docker tag viper-php-7.3 goto10hq/viper-php-7.3:1.0.0
docker tag viper-php-7.3 goto10hq/viper-php-7.3:latest
docker push goto10hq/viper-php-7.3:1.0.0
docker push goto10hq/viper-php-7.3:latest

0 comments on commit 74c330f

Please sign in to comment.