kenken999 commited on
Commit
6078bfe
·
1 Parent(s): 27db529
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \
13
  libsqlite3-dev \
14
  zip \
15
  unzip \
16
- && docker-php-ext-install pgsql pdo_pgsql pdo_sqlite mysqli php-mysql
17
 
18
  # Install Composer
19
  COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
@@ -27,13 +27,11 @@ ENV PATH="$PATH:/root/.composer/vendor/bin"
27
  # Create a new Laravel project
28
  RUN laravel new /var/www/html
29
 
30
-
31
  # Download and set up phpMyAdmin from GitHub
32
  RUN wget https://github.com/phpmyadmin/phpmyadmin/archive/refs/tags/RELEASE_5_1_4.tar.gz -O phpmyadmin.tar.gz \
33
  && tar -xzvf phpmyadmin.tar.gz -C /var/www/html --strip-components=1 \
34
  && rm phpmyadmin.tar.gz
35
 
36
-
37
  # Change Apache to listen on port 7860
38
  RUN sed -i 's/Listen 80/Listen 7860/' /etc/apache2/ports.conf \
39
  && sed -i 's/:80/:7860/' /etc/apache2/sites-available/000-default.conf
@@ -63,4 +61,4 @@ ENV APACHE_PORT=7860
63
  EXPOSE 7860
64
 
65
  # Start Apache
66
- CMD ["apache2-foreground"]
 
13
  libsqlite3-dev \
14
  zip \
15
  unzip \
16
+ && docker-php-ext-install pgsql pdo_pgsql pdo_sqlite mysqli pdo_mysql
17
 
18
  # Install Composer
19
  COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
 
27
  # Create a new Laravel project
28
  RUN laravel new /var/www/html
29
 
 
30
  # Download and set up phpMyAdmin from GitHub
31
  RUN wget https://github.com/phpmyadmin/phpmyadmin/archive/refs/tags/RELEASE_5_1_4.tar.gz -O phpmyadmin.tar.gz \
32
  && tar -xzvf phpmyadmin.tar.gz -C /var/www/html --strip-components=1 \
33
  && rm phpmyadmin.tar.gz
34
 
 
35
  # Change Apache to listen on port 7860
36
  RUN sed -i 's/Listen 80/Listen 7860/' /etc/apache2/ports.conf \
37
  && sed -i 's/:80/:7860/' /etc/apache2/sites-available/000-default.conf
 
61
  EXPOSE 7860
62
 
63
  # Start Apache
64
+ CMD ["apache2-foreground"]