-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (42 loc) · 966 Bytes
/
Dockerfile
File metadata and controls
48 lines (42 loc) · 966 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
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM php:8.2-cli
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
unzip \
zip \
curl \
libzip-dev \
libonig-dev \
libxml2-dev \
libicu-dev \
libjpeg-dev \
libpng-dev \
libfreetype6-dev \
libxslt-dev \
libpq-dev \
zlib1g-dev \
libmcrypt-dev \
libssl-dev \
libsqlite3-dev \
&& docker-php-ext-configure zip \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install \
intl \
pdo \
pdo_mysql \
zip \
opcache \
gd \
xsl \
sockets \
pcntl
# Install Composer
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
# Create working directory
WORKDIR /var/www/html
# Copy entrypoint script
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# Expose port for Symfony
EXPOSE 8000
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]