Add Nodejs

This commit is contained in:
2022-09-01 17:54:07 +02:00
parent 932a07de66
commit fd17192ff2

View File

@@ -4,6 +4,7 @@ ENV DOCUMENT_ROOT=${WORKDIR}
ENV LARAVEL_PROCS_NUMBER=1 ENV LARAVEL_PROCS_NUMBER=1
ENV DOMAIN=_ ENV DOMAIN=_
ENV CLIENT_MAX_BODY_SIZE=15M ENV CLIENT_MAX_BODY_SIZE=15M
ENV NODE_VERSION=16.x
# Install system dependencies # Install system dependencies
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
git \ git \
@@ -24,6 +25,10 @@ RUN apt-get update && apt-get install -y \
sqlite3 \ sqlite3 \
nano \ nano \
cron cron
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
# Install Node
RUN apt-get install -y nodejs
# Install nginx # Install nginx
RUN apt-get update && apt-get install -y nginx RUN apt-get update && apt-get install -y nginx