MAPG-7 install nodejs, uglify-js and clean-css into the Docker image
cleanup Docker files
This commit is contained in:
1 parent
c0ad64cbe5
commit
2c9a3ec23c
3 files changed
+7
-6
No files matched your search
+6
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user