aboutsummaryrefslogtreecommitdiffhomepage
path: root/Q3.Dockerfile
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2023-03-15 00:26:13 +0900
committernsfisis <nsfisis@gmail.com>2023-03-15 00:26:13 +0900
commitc830af9e843f5350d1f88bbeeda9aa7db859b75a (patch)
tree1c473964c451ff430c0d3d27681a8c1bed4050cc /Q3.Dockerfile
parentd2193fdd6505fdb4b272359d9a82cdbe34c55dd5 (diff)
downloadPHPerKaigi2023-tokens-c830af9e843f5350d1f88bbeeda9aa7db859b75a.tar.gz
PHPerKaigi2023-tokens-c830af9e843f5350d1f88bbeeda9aa7db859b75a.tar.zst
PHPerKaigi2023-tokens-c830af9e843f5350d1f88bbeeda9aa7db859b75a.zip
add token quizzesHEADmain
Diffstat (limited to 'Q3.Dockerfile')
-rw-r--r--Q3.Dockerfile33
1 files changed, 33 insertions, 0 deletions
diff --git a/Q3.Dockerfile b/Q3.Dockerfile
new file mode 100644
index 0000000..598df34
--- /dev/null
+++ b/Q3.Dockerfile
@@ -0,0 +1,33 @@
+FROM composer:2.5.1
+
+FROM php:8.2.1
+
+WORKDIR /work
+
+RUN : && \
+ apt-get update && \
+ apt-get install -y git libffi-dev unzip && \
+ apt-get clean && \
+ rm -rf /var/lib/apt/lists/* && \
+ :
+
+RUN : && \
+ docker-php-ext-configure ffi --with-ffi && \
+ docker-php-ext-install ffi && \
+ :
+
+COPY --from=composer /usr/bin/composer /usr/bin/composer
+
+COPY Q3.composer.json Q3.composer.lock /work/
+
+RUN : && \
+ git clone --depth=1 --branch=v9.5.0 https://github.com/laravel/laravel.git && \
+ cd laravel && \
+ cp -f ../Q3.composer.json composer.json && \
+ cp -f ../Q3.composer.lock composer.lock && \
+ COMPOSER_ALLOW_SUPERUSER=1 composer install --prefer-dist --no-dev && \
+ cp -f .env.example .env && \
+ php artisan key:generate --ansi && \
+ :
+
+COPY Q3.php /work/