Spaces:
Paused
Paused
Delete Dockerfile
Browse files- Dockerfile +0 -36
Dockerfile
DELETED
|
@@ -1,36 +0,0 @@
|
|
| 1 |
-
# Use the official PHP image with Apache
|
| 2 |
-
FROM php:8.1-apache
|
| 3 |
-
|
| 4 |
-
# Install system dependencies required for SQLite3
|
| 5 |
-
RUN apt-get update && apt-get install -y \
|
| 6 |
-
libsqlite3-dev \
|
| 7 |
-
pkg-config
|
| 8 |
-
|
| 9 |
-
# Set the working directory inside the container
|
| 10 |
-
WORKDIR /var/www/html
|
| 11 |
-
|
| 12 |
-
# Copy the application files to the container's web root
|
| 13 |
-
COPY stremio/ /var/www/html
|
| 14 |
-
|
| 15 |
-
# Install required PHP extensions (e.g., sqlite3 for SQLite support)
|
| 16 |
-
RUN docker-php-ext-install pdo pdo_sqlite
|
| 17 |
-
|
| 18 |
-
# Ensure Apache uses index.php or index.html as the default index file
|
| 19 |
-
RUN sed -i 's#DirectoryIndex .*#DirectoryIndex index.php index.html#' /etc/apache2/mods-enabled/dir.conf
|
| 20 |
-
|
| 21 |
-
# Set a ServerName to suppress warnings
|
| 22 |
-
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
| 23 |
-
|
| 24 |
-
# Set permissions for all files and directories in /var/www/html
|
| 25 |
-
RUN chmod -R 755 /var/www/html \
|
| 26 |
-
&& chown -R www-data:www-data /var/www/html
|
| 27 |
-
|
| 28 |
-
# Expose a non-privileged port
|
| 29 |
-
EXPOSE 8080
|
| 30 |
-
|
| 31 |
-
# Update Apache configuration to listen on port 8080 instead of 80
|
| 32 |
-
RUN sed -i 's/Listen 80/Listen 8080/' /etc/apache2/ports.conf \
|
| 33 |
-
&& sed -i 's/<VirtualHost *:80>/<VirtualHost *:8080>/' /etc/apache2/sites-enabled/000-default.conf
|
| 34 |
-
|
| 35 |
-
# Start Apache in the foreground
|
| 36 |
-
CMD ["apache2-foreground"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|