Add Dockerfile
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
# Gunakan image resmi PHP dengan Apache
|
||||
FROM php:8.2-apache
|
||||
|
||||
# Install ekstensi PDO MySQL agar PHP bisa ngobrol dengan database
|
||||
RUN docker-php-ext-install pdo pdo_mysql
|
||||
|
||||
# Salin semua file web Anda ke dalam server container
|
||||
COPY . /var/www/html/
|
||||
|
||||
# Atur perizinan folder
|
||||
RUN chown -R www-data:www-data /var/www/html
|
||||
|
||||
# Ekspos port default web (Apache)
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user