MAPG-7 install nodejs, uglify-js and clean-css into the Docker image
cleanup Docker files
This commit is contained in:
parent
c0ad64cbe5
commit
2c9a3ec23c
@ -13,7 +13,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- mysql:/var/lib/mysql
|
- mysql:/var/lib/mysql
|
||||||
environment:
|
environment:
|
||||||
#TZ: Europe/Budapest
|
|
||||||
MYSQL_ROOT_PASSWORD: 'root'
|
MYSQL_ROOT_PASSWORD: 'root'
|
||||||
MYSQL_DATABASE: 'mapguesser'
|
MYSQL_DATABASE: 'mapguesser'
|
||||||
MYSQL_USER: 'mapguesser'
|
MYSQL_USER: 'mapguesser'
|
||||||
|
@ -7,10 +7,6 @@ RUN apt update
|
|||||||
RUN apt install -y curl git apache2 \
|
RUN apt install -y curl git apache2 \
|
||||||
php-apcu php-xdebug php7.4-cli php7.4-fpm php7.4-mbstring php7.4-mysql php7.4-zip
|
php-apcu php-xdebug php7.4-cli php7.4-fpm php7.4-mbstring php7.4-mysql php7.4-zip
|
||||||
|
|
||||||
# Configure tzdata
|
|
||||||
#RUN ln -fs /usr/share/zoneinfo/Europe/Budapest /etc/localtime
|
|
||||||
#RUN dpkg-reconfigure --frontend noninteractive tzdata
|
|
||||||
|
|
||||||
# Configure Apache with PHP
|
# Configure Apache with PHP
|
||||||
RUN mkdir -p /run/php
|
RUN mkdir -p /run/php
|
||||||
RUN a2enmod proxy_fcgi rewrite
|
RUN a2enmod proxy_fcgi rewrite
|
||||||
@ -24,6 +20,12 @@ RUN echo "xdebug.remote_connect_back = 1" >> /etc/php/7.4/mods-available/xdebug.
|
|||||||
COPY scripts/install-composer.sh install-composer.sh
|
COPY scripts/install-composer.sh install-composer.sh
|
||||||
RUN ./install-composer.sh
|
RUN ./install-composer.sh
|
||||||
|
|
||||||
|
# Install Node.js and required packages
|
||||||
|
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
|
||||||
|
RUN apt install -y nodejs
|
||||||
|
RUN npm install -g uglify-js
|
||||||
|
RUN npm install -g clean-css-cli
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
VOLUME /var/www/mapguesser
|
VOLUME /var/www/mapguesser
|
||||||
WORKDIR /var/www/mapguesser
|
WORKDIR /var/www/mapguesser
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
EXPECTED_CHECKSUM="$(curl -s https://composer.github.io/installer.sig)"
|
EXPECTED_CHECKSUM="$(curl -sL https://composer.github.io/installer.sig)"
|
||||||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
||||||
ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
|
ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user