Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +12 -5
Dockerfile
CHANGED
|
@@ -18,15 +18,22 @@ RUN curl -o sqlite-plugin.zip https://downloads.wordpress.org/plugin/sqlite-data
|
|
| 18 |
&& unzip sqlite-plugin.zip -d /var/www/html/wp-content/plugins/ \
|
| 19 |
&& rm sqlite-plugin.zip
|
| 20 |
|
| 21 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
RUN cp /var/www/html/wp-content/plugins/sqlite-database-integration/wp-includes/sqlite/db.php /var/www/html/wp-content/db.php
|
| 23 |
|
| 24 |
# Create SQLite database directory
|
| 25 |
-
RUN mkdir -p /var/www/html/wp-content/database
|
| 26 |
-
chown -R www-data:www-data /var/www/html
|
| 27 |
|
| 28 |
-
# Set permissions
|
| 29 |
-
RUN
|
|
|
|
|
|
|
| 30 |
|
| 31 |
# Ubah Apache ke port 7860
|
| 32 |
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf \
|
|
|
|
| 18 |
&& unzip sqlite-plugin.zip -d /var/www/html/wp-content/plugins/ \
|
| 19 |
&& rm sqlite-plugin.zip
|
| 20 |
|
| 21 |
+
# Pastikan direktori wp-content ada dan copy db.php
|
| 22 |
+
RUN mkdir -p /var/www/html/wp-content
|
| 23 |
+
|
| 24 |
+
# Debug: Lihat struktur direktori plugin
|
| 25 |
+
RUN ls -la /var/www/html/wp-content/plugins/sqlite-database-integration/
|
| 26 |
+
|
| 27 |
+
# Copy db.php dari lokasi yang benar
|
| 28 |
RUN cp /var/www/html/wp-content/plugins/sqlite-database-integration/wp-includes/sqlite/db.php /var/www/html/wp-content/db.php
|
| 29 |
|
| 30 |
# Create SQLite database directory
|
| 31 |
+
RUN mkdir -p /var/www/html/wp-content/database
|
|
|
|
| 32 |
|
| 33 |
+
# Set ownership dan permissions
|
| 34 |
+
RUN chown -R www-data:www-data /var/www/html \
|
| 35 |
+
&& chmod 755 /var/www/html/wp-content/db.php \
|
| 36 |
+
&& chmod 755 /var/www/html/wp-content/database
|
| 37 |
|
| 38 |
# Ubah Apache ke port 7860
|
| 39 |
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf \
|