-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (17 loc) · 714 Bytes
/
Dockerfile
File metadata and controls
28 lines (17 loc) · 714 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 php:8.2-apache
RUN mkdir -p /var/www/chatwtf
WORKDIR /var/www/chatwtf
ENV APACHE_DOCUMENT_ROOT /var/www/chatwtf/public
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/000-default.conf
RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}/!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
RUN apt-get update && apt-get install -y \
python3 \
python3-pip
RUN apt-get install -y libsqlite3-dev
RUN docker-php-ext-install pdo pdo_sqlite
COPY requirements.txt .
RUN python3 -m pip install --break-system-packages -r requirements.txt
COPY . /var/www/chatwtf
RUN chown -R www-data:www-data /var/www/chatwtf
EXPOSE 80
CMD ["apache2-foreground"]