-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (27 loc) · 824 Bytes
/
Copy pathDockerfile
File metadata and controls
35 lines (27 loc) · 824 Bytes
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
34
35
FROM composer:2 AS composer
FROM php:8.4-fpm-alpine
WORKDIR /var/www/html
RUN apk add --no-cache \
bash \
curl \
icu-dev \
libzip-dev \
oniguruma-dev \
sqlite-dev \
zip \
&& docker-php-ext-configure intl \
&& docker-php-ext-install \
bcmath \
intl \
mbstring \
pdo_sqlite \
&& rm -rf /var/cache/apk/*
COPY --from=composer /usr/bin/composer /usr/bin/composer
COPY . .
RUN composer install --no-interaction --prefer-dist --optimize-autoloader
RUN mkdir -p storage/framework/cache storage/framework/sessions storage/framework/views bootstrap/cache \
&& chown -R www-data:www-data storage bootstrap/cache \
&& chmod +x docker/entrypoint.sh
COPY docker/entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
CMD ["php-fpm"]