Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -18,13 +18,16 @@ 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 |
-
# Copy SQLite drop-in
|
| 22 |
-
RUN cp /var/www/html/wp-content/plugins/sqlite-database-integration/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 |
# Ubah Apache ke port 7860
|
| 29 |
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf \
|
| 30 |
&& sed -i 's/80/7860/g' /etc/apache2/ports.conf /etc/apache2/sites-available/000-default.conf
|
|
|
|
| 18 |
&& unzip sqlite-plugin.zip -d /var/www/html/wp-content/plugins/ \
|
| 19 |
&& rm sqlite-plugin.zip
|
| 20 |
|
| 21 |
+
# Copy SQLite drop-in dari lokasi yang benar
|
| 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 chmod 755 /var/www/html/wp-content/db.php
|
| 30 |
+
|
| 31 |
# Ubah Apache ke port 7860
|
| 32 |
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf \
|
| 33 |
&& sed -i 's/80/7860/g' /etc/apache2/ports.conf /etc/apache2/sites-available/000-default.conf
|