forked from gmagmeg/book-frankenphp-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (19 loc) · 668 Bytes
/
Dockerfile
File metadata and controls
28 lines (19 loc) · 668 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
FROM dunglas/frankenphp:1-php8.4-bookworm
RUN apt-get update && apt-get install -y nodejs npm && rm -rf /var/lib/apt/lists/*
RUN install-php-extensions \
pcntl \
pdo_pgsql \
intl \
zip \
opcache
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
WORKDIR /app
COPY . /app
RUN composer install --no-interaction --prefer-dist \
&& npm install \
&& chown -R www-data:www-data /app/storage /app/bootstrap/cache
COPY docker/php.ini /usr/local/etc/php/conf.d/zzz-local.ini
COPY docker/start-container.sh /usr/local/bin/start-container
RUN chmod +x /usr/local/bin/start-container
EXPOSE 8000
CMD ["/usr/local/bin/start-container"]