forked from limosa-io/laravel-scim-server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
24 lines (17 loc) · 863 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM php:8.0-alpine
RUN apk add --no-cache git jq moreutils
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN composer create-project --prefer-dist laravel/laravel example && \
cd example
WORKDIR /example
COPY . /laravel-scim-server
RUN jq '.repositories=[{"type": "path","url": "/laravel-scim-server"}]' ./composer.json | sponge ./composer.json
RUN composer require arietimmerman/laravel-scim-server @dev && \
composer require laravel/tinker
RUN touch ./.database.sqlite && \
echo "DB_CONNECTION=sqlite" >> ./.env && \
echo "DB_DATABASE=/example/.database.sqlite" >> ./.env && \
echo "APP_URL=http://localhost:18123" >> ./.env
RUN php artisan migrate && \
echo "User::factory()->count(100)->create();" | php artisan tinker
CMD php artisan serve --host=0.0.0.0 --port=8000