Skip to content
Draft
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
5 changes: 3 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ services:
KEYCLOAK_ADMIN_PASSWORD: admin

web:
image: php:8.1-cli-alpine
build:
context: ./web
ports:
- 8000:8000
command: php -S 0.0.0.0:8000 -t /app
#command: php -S 0.0.0.0:8000 -t /app
volumes:
- ./web:/app
1 change: 1 addition & 0 deletions web/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vendor/
16 changes: 16 additions & 0 deletions web/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM php:8.1-cli-alpine

COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

# ref: https://stackoverflow.com/a/63579640/2496217
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/bin/

# Install PHP extensions
RUN install-php-extensions ldap

#COPY . /app
#WORKDIR /app

#RUN composer install && composer dump-autoload

CMD [ "php", "-S", "0.0.0.0:8000", "-t", "/app" ]
13 changes: 13 additions & 0 deletions web/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "azophy/experimen-opnledap-php",
"type": "project",
"authors": [
{
"name": "Abdurrahman Shofy Adianto",
"email": "azophy@gmail.com"
}
],
"require": {
"directorytree/ldaprecord": "^2.16"
}
}
Loading