-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 726 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM php:8.2-apache
## Always use latest libpq-dev version
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install --no-install-recommends -y libpq-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# docker php image has its own way of installing a module
RUN docker-php-ext-install pgsql && a2enmod headers
# Custom Apache Configuration
COPY apache.conf /etc/apache2/conf-enabled/rating.conf
# Disable directives redefined in rating.conf (to avoid dependening on file name for config merging)
RUN sed -i 's/^ServerTokens/#ServerTokens/g' /etc/apache2/conf-available/security.conf \
&& sed -i 's/^ServerSignature/#ServerSignature/g' /etc/apache2/conf-available/security.conf
COPY src/ /var/www/html