From 3473cfe9ffc04c8733d3db9ac7dae3a8a34277d3 Mon Sep 17 00:00:00 2001 From: Clovis Gladstone Date: Thu, 16 May 2024 09:28:35 -0500 Subject: [PATCH] use more recent version of node in Dockerfile --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3b30c806..7163dbc8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,12 @@ FROM ubuntu:22.04 +ENV DEBIAN_FRONTEND=noninteractive # Install dependencies +RUN apt update && apt install -y curl && curl -fsSL https://deb.nodesource.com/setup_22.x | bash - + RUN apt-get update && apt-get upgrade -y && \ - DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libxml2-dev libxslt-dev zlib1g-dev apache2 libgdbm-dev liblz4-tool brotli ripgrep gcc make python3-dev wget sudo nodejs npm python3.10-venv && \ + apt-get install -y --no-install-recommends libxml2-dev libxslt-dev zlib1g-dev apache2 libgdbm-dev liblz4-tool brotli ripgrep gcc make python3-dev wget sudo nodejs python3.10-venv && \ apt-get clean && rm -rf /var/lib/apt # Install pip @@ -12,8 +15,7 @@ RUN wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py # Install PhiloLogic COPY . /PhiloLogic4 WORKDIR /PhiloLogic4 -RUN sh install.sh - +RUN sh install.sh && mkdir /var/www/html/philologic RUN a2enmod rewrite && a2enmod cgi && a2enmod brotli