Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Base Docker PHP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dhevan Muhammad
Base Docker PHP
Commits
8956ca26
Commit
8956ca26
authored
Jun 21, 2024
by
Dhevan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
..
parent
15fec2b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
Dockerfile
Dockerfile
+2
-0
Dockerfile56
Dockerfile56
+29
-0
No files found.
Dockerfile
View file @
8956ca26
...
@@ -3,4 +3,6 @@ RUN docker-php-ext-install mysqli pdo pdo_mysql
...
@@ -3,4 +3,6 @@ RUN docker-php-ext-install mysqli pdo pdo_mysql
RUN
apt-get update
-y
&&
apt-get
install
-y
libpng-dev zlib1g-dev
RUN
apt-get update
-y
&&
apt-get
install
-y
libpng-dev zlib1g-dev
RUN
curl
-sS
https://getcomposer.org/installer | php
--
--install-dir
=
/usr/local/bin
--filename
=
composer
RUN
curl
-sS
https://getcomposer.org/installer | php
--
--install-dir
=
/usr/local/bin
--filename
=
composer
RUN
docker-php-ext-install gd
RUN
docker-php-ext-install gd
RUN
apt-get
-y
install
git
RUN
apt-get
-y
install
unzip
RUN
a2enmod rewrite
RUN
a2enmod rewrite
Dockerfile56
0 → 100644
View file @
8956ca26
FROM ubuntu:20.04
ARG DEBIAN_FRONTEND=noninteractive
#Install Apache
RUN apt-get update && apt-get install -y \
apache2 \
apache2-utils \
software-properties-common
RUN apt clean all
#Install PHP
RUN add-apt-repository ppa:ondrej/php
RUN apt update && apt install -y php5.6
#Install PHP Extension
RUN apt install -y php5.6-mysql php5.6-mysqli libapache2-mod-php5.6 php5.6-curl \
php5.6-pgsql php5.6-gettext php5.6-gd php5.6-intl php5.6-xml php5.6-iconv \
php5.6-ftp php5.6-xsl php5.6-json php5.6-ldap
RUN apt clean all
#Install Composerdocker docker
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer
#Mod Rewrite
RUN a2enmod rewrite
RUN service apache2 start
CMD apachectl -D FOREGROUND
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment