MAPG-7 install nodejs, uglify-js and clean-css into the Docker image

cleanup Docker files
This commit is contained in:
Bence Pőcze 2020-05-20 03:26:51 +02:00
parent c0ad64cbe5
commit 2c9a3ec23c
3 changed files with 7 additions and 6 deletions

View File

@ -13,7 +13,6 @@ services:
volumes:
- mysql:/var/lib/mysql
environment:
#TZ: Europe/Budapest
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_DATABASE: 'mapguesser'
MYSQL_USER: 'mapguesser'

View File

@ -7,10 +7,6 @@ RUN apt update
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
# Configure tzdata
#RUN ln -fs /usr/share/zoneinfo/Europe/Budapest /etc/localtime
#RUN dpkg-reconfigure --frontend noninteractive tzdata
# Configure Apache with PHP
RUN mkdir -p /run/php
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
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
VOLUME /var/www/mapguesser
WORKDIR /var/www/mapguesser

View File

@ -1,6 +1,6 @@
#!/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');"
ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"