-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (18 loc) · 985 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (18 loc) · 985 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
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
php8.2-cli php8.2-sqlite3 php8.2-mbstring php8.2-xml php8.2-curl php8.2-zip php8.2-bcmath php8.2-fileinfo \
curl \
&& rm -rf /var/lib/apt/lists/*
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /var/www
COPY . .
RUN composer config --no-plugins policy.advisories.block false 2>/dev/null || true && \
composer require "laravel/framework:^11.0" --no-interaction --no-scripts 2>&1 && \
composer update --no-dev --optimize-autoloader --no-scripts 2>&1
RUN mkdir -p storage/framework/views storage/framework/cache storage/framework/sessions storage/app bootstrap/cache database \
&& chmod -R 775 storage bootstrap/cache \
&& touch database/database.sqlite 2>/dev/null || true
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
EXPOSE 10000
ENTRYPOINT ["docker-entrypoint.sh"]