Add project files
This commit is contained in:
18
00_uebungs-files/01_docker-basics-php/Dockerfile
Normal file
18
00_uebungs-files/01_docker-basics-php/Dockerfile
Normal file
@@ -0,0 +1,18 @@
|
||||
FROM php:8.1-cli
|
||||
|
||||
# GD Extension installieren
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libfreetype6-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
libpng-dev \
|
||||
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
|
||||
&& docker-php-ext-install -j$(nproc) gd
|
||||
|
||||
# PDO MySQL Extension installieren
|
||||
RUN docker-php-ext-install pdo pdo_mysql
|
||||
|
||||
WORKDIR /app
|
||||
COPY ./src .
|
||||
|
||||
# Entwicklungsserver starten
|
||||
CMD ["php", "-S", "0.0.0.0:8000"]
|
||||
Reference in New Issue
Block a user