aboutsummaryrefslogtreecommitdiffhomepage
path: root/Q3.Dockerfile
blob: 598df3404f4cb13b1b0de6afeebf57233c5c66f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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/