server: add Dockerfile and environment variables

The Dockerfile (and docker-compose) simplify the server's deployment.
The environment variables avoid secrets in the code.
This commit is contained in:
dario-cfpt
2024-10-02 10:24:59 +02:00
parent 318a2a0b17
commit 068158ede9
3 changed files with 51 additions and 9 deletions

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM docker.io/library/php:8.3-apache
COPY server/*.php /var/www/html
COPY server/.htaccess /var/www/html
RUN a2enmod rewrite && docker-php-ext-install pdo pdo_mysql
EXPOSE 80