fix: add COPY and EXPOSE 80 to Dockerfile
This commit is contained in:
@@ -6,5 +6,11 @@ RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
|
|||||||
# Aktifkan mod_rewrite Apache (berguna untuk URL yang bersih/routing)
|
# Aktifkan mod_rewrite Apache (berguna untuk URL yang bersih/routing)
|
||||||
RUN a2enmod rewrite
|
RUN a2enmod rewrite
|
||||||
|
|
||||||
|
# Copy semua file project ke dalam container
|
||||||
|
COPY . /var/www/html/
|
||||||
|
|
||||||
# Update permissions
|
# Update permissions
|
||||||
RUN chown -R www-data:www-data /var/www/html
|
RUN chown -R www-data:www-data /var/www/html
|
||||||
|
|
||||||
|
# Expose port Apache
|
||||||
|
EXPOSE 80
|
||||||
|
|||||||
Reference in New Issue
Block a user