dockerized the application for easier distribution and depleyment

This commit is contained in:
Patryk Hegenberg 2023-12-28 11:35:42 +01:00
parent b06c3cec3e
commit a9147c3698
6 changed files with 100 additions and 28 deletions

18
Dockerfile.math_wizard Normal file
View file

@ -0,0 +1,18 @@
# Verwende ein Basisimage mit PHP
FROM php:8.2-cli
# Setze das Arbeitsverzeichnis
WORKDIR /app
# Kopiere den Projektinhalt in das Arbeitsverzeichnis im Container
COPY . .
# Installiere die erforderlichen PHP-Erweiterungen
RUN docker-php-ext-install pdo pdo_mysql
# Exponiere den Port, den der PHP-Server verwenden wird
EXPOSE 8080
# Starte den PHP-Server beim Containerstart
CMD ["php", "-S", "0.0.0.0:8080"]