-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbda518
commit 7c2df98
Showing
12 changed files
with
1,334 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VERSION=1.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
FROM php:fpm | ||
|
||
WORKDIR /var/www/html | ||
|
||
COPY . /var/www/html | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y --no-install-recommends \ | ||
libfreetype6-dev \ | ||
libicu-dev \ | ||
libjpeg-dev \ | ||
libmagickwand-dev \ | ||
libpng-dev \ | ||
libwebp-dev \ | ||
libzip-dev | ||
|
||
RUN docker-php-ext-install -j "$(nproc)" \ | ||
pdo \ | ||
pdo_mysql \ | ||
mysqli \ | ||
bcmath \ | ||
exif \ | ||
gd \ | ||
intl \ | ||
zip | ||
|
||
RUN docker-php-ext-configure gd \ | ||
--with-freetype \ | ||
--with-jpeg \ | ||
--with-webp | ||
|
||
|
||
RUN set -eux; \ | ||
docker-php-ext-enable opcache; \ | ||
{ \ | ||
echo 'opcache.memory_consumption=128'; \ | ||
echo 'opcache.interned_strings_buffer=8'; \ | ||
echo 'opcache.max_accelerated_files=4000'; \ | ||
echo 'opcache.revalidate_freq=2'; \ | ||
echo 'opcache.fast_shutdown=1'; \ | ||
} > /usr/local/etc/php/conf.d/opcache-recommended.ini | ||
|
||
RUN pecl install xdebug && docker-php-ext-enable xdebug | ||
|
||
RUN pecl install imagick-3.7.0 && docker-php-ext-enable imagick | ||
|
||
RUN adduser sleekwaredb-user | ||
USER sleekwaredb-user | ||
|
||
CMD ["php-fpm"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "gitpod/sleekwaredb-api", | ||
"description": "SleekwareDB API", | ||
"type": "project", | ||
"autoload": { | ||
"psr-4": { | ||
"SleekwaredbApi\\": "src/" | ||
} | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Imam Ali Mustofa", | ||
"email": "d.darkterminal@gmail.com" | ||
} | ||
], | ||
"require": { | ||
"slim/slim": "4.*", | ||
"slim/psr7": "^1.5", | ||
"php-di/php-di": "^6.4", | ||
"justinrainbow/json-schema": "^5.2" | ||
}, | ||
"require-dev": { | ||
"symfony/dotenv": "^6.1" | ||
} | ||
} |
Oops, something went wrong.