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
f54af715
Commit
f54af715
authored
Oct 14, 2022
by
dhevanthareza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add composer
parent
0249b073
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
Dockerfile
Dockerfile
+2
-4
docker-compose.yml
docker-compose.yml
+2
-2
index.php
index.php
+1
-0
No files found.
Dockerfile
View file @
f54af715
FROM
php:8.1-apache
FROM
php:8.1-apache
RUN
docker-php-ext-install mysqli pdo pdo_mysql
RUN
docker-php-ext-install mysqli pdo pdo_mysql
RUN
apt-get update
-y
&&
apt-get
install
-y
libpng-dev
RUN
apt-get update
-y
&&
apt-get
install
-y
libpng-dev zlib1g-dev
RUN
apt-get update
&&
\
RUN
curl
-sS
https://getcomposer.org/installer | php
--
--install-dir
=
/usr/local/bin
--filename
=
composer
apt-get
install
-y
\
zlib1g-dev
RUN
docker-php-ext-install gd
RUN
docker-php-ext-install gd
RUN
a2enmod rewrite
RUN
a2enmod rewrite
RUN
service apache2 restart
RUN
service apache2 restart
...
...
docker-compose.yml
View file @
f54af715
...
@@ -2,12 +2,12 @@ version: '3.1'
...
@@ -2,12 +2,12 @@ version: '3.1'
services
:
services
:
php-apache
:
php-apache
:
container_name
:
digitepp
container_name
:
base-docker
build
:
build
:
context
:
.
context
:
.
dockerfile
:
Dockerfile
dockerfile
:
Dockerfile
ports
:
ports
:
-
400
0
:80
-
400
5
:80
volumes
:
volumes
:
-
./:/var/www/html/
-
./:/var/www/html/
-
./apache/default.conf:/etc/apache2/sites-enabled/000-default.conf
-
./apache/default.conf:/etc/apache2/sites-enabled/000-default.conf
\ No newline at end of file
index.php
0 → 100644
View file @
f54af715
<?php
echo
"Hello World"
;
?>
\ No newline at end of file
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