mirror of
https://github.com/jkaninda/laravel-php-fpm.git
synced 2025-12-06 08:59:38 +01:00
Update Node version, refactoring
This commit is contained in:
@@ -2,7 +2,7 @@ FROM php:7.2-fpm
|
|||||||
ARG WORKDIR=/var/www/html
|
ARG WORKDIR=/var/www/html
|
||||||
ENV DOCUMENT_ROOT=${WORKDIR}
|
ENV DOCUMENT_ROOT=${WORKDIR}
|
||||||
ENV LARAVEL_PROCS_NUMBER=1
|
ENV LARAVEL_PROCS_NUMBER=1
|
||||||
ENV NODE_VERSION=19.x
|
ENV NODE_MAJOR=18
|
||||||
# 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,9 +24,12 @@ RUN apt-get update && apt-get install -y \
|
|||||||
nano \
|
nano \
|
||||||
cron
|
cron
|
||||||
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
|
# Install Nodejs
|
||||||
# Install Node
|
RUN apt-get update && apt-get install -y ca-certificates curl gnupg
|
||||||
RUN apt-get install -y nodejs
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||||
|
RUN apt-get update && apt-get install nodejs -y
|
||||||
|
|
||||||
# Clear cache
|
# Clear cache
|
||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
# Install Kafka
|
# Install Kafka
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ FROM php:7.3-fpm
|
|||||||
ARG WORKDIR=/var/www/html
|
ARG WORKDIR=/var/www/html
|
||||||
ENV DOCUMENT_ROOT=${WORKDIR}
|
ENV DOCUMENT_ROOT=${WORKDIR}
|
||||||
ENV LARAVEL_PROCS_NUMBER=1
|
ENV LARAVEL_PROCS_NUMBER=1
|
||||||
ENV NODE_VERSION=19.x
|
ENV NODE_MAJOR=18
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
git \
|
git \
|
||||||
@@ -23,10 +23,12 @@ RUN apt-get update && apt-get install -y \
|
|||||||
sqlite3 \
|
sqlite3 \
|
||||||
nano \
|
nano \
|
||||||
cron
|
cron
|
||||||
|
# Install Nodejs
|
||||||
|
RUN apt-get update && apt-get install -y ca-certificates curl gnupg
|
||||||
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||||
|
RUN apt-get update && apt-get install nodejs -y
|
||||||
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
|
|
||||||
# Install Node
|
|
||||||
RUN apt-get install -y nodejs
|
|
||||||
# Clear cache
|
# Clear cache
|
||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
# Install Kafka
|
# Install Kafka
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ FROM php:7.4-fpm
|
|||||||
ARG WORKDIR=/var/www/html
|
ARG WORKDIR=/var/www/html
|
||||||
ENV DOCUMENT_ROOT=${WORKDIR}
|
ENV DOCUMENT_ROOT=${WORKDIR}
|
||||||
ENV LARAVEL_PROCS_NUMBER=1
|
ENV LARAVEL_PROCS_NUMBER=1
|
||||||
ENV NODE_VERSION=19.x
|
ENV NODE_MAJOR=18
|
||||||
ARG HOST_UID=1000
|
ARG HOST_UID=1000
|
||||||
ENV USER=www-data
|
ENV USER=www-data
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
@@ -26,9 +26,12 @@ RUN apt-get update && apt-get install -y \
|
|||||||
nano \
|
nano \
|
||||||
cron
|
cron
|
||||||
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
|
# Install Nodejs
|
||||||
# Install Node
|
RUN apt-get update && apt-get install -y ca-certificates curl gnupg
|
||||||
RUN apt-get install -y nodejs
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||||
|
RUN apt-get update && apt-get install nodejs -y
|
||||||
|
|
||||||
# Clear cache
|
# Clear cache
|
||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
# Install Kafka
|
# Install Kafka
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ FROM php:8.0-fpm
|
|||||||
ARG WORKDIR=/var/www/html
|
ARG WORKDIR=/var/www/html
|
||||||
ENV DOCUMENT_ROOT=${WORKDIR}
|
ENV DOCUMENT_ROOT=${WORKDIR}
|
||||||
ENV LARAVEL_PROCS_NUMBER=1
|
ENV LARAVEL_PROCS_NUMBER=1
|
||||||
ENV NODE_VERSION=19.x
|
ENV NODE_MAJOR=18
|
||||||
ARG HOST_UID=1000
|
ARG HOST_UID=1000
|
||||||
ENV USER=www-data
|
ENV USER=www-data
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
@@ -25,10 +25,12 @@ RUN apt-get update && apt-get install -y \
|
|||||||
sqlite3 \
|
sqlite3 \
|
||||||
nano \
|
nano \
|
||||||
cron
|
cron
|
||||||
|
# Install Nodejs
|
||||||
|
RUN apt-get update && apt-get install -y ca-certificates curl gnupg
|
||||||
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||||
|
RUN apt-get update && apt-get install nodejs -y
|
||||||
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
|
|
||||||
# Install Node
|
|
||||||
RUN apt-get install -y nodejs
|
|
||||||
# Clear cache
|
# Clear cache
|
||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
# Install Kafka
|
# Install Kafka
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ FROM php:8.1-fpm
|
|||||||
ARG WORKDIR=/var/www/html
|
ARG WORKDIR=/var/www/html
|
||||||
ENV DOCUMENT_ROOT=${WORKDIR}
|
ENV DOCUMENT_ROOT=${WORKDIR}
|
||||||
ENV LARAVEL_PROCS_NUMBER=1
|
ENV LARAVEL_PROCS_NUMBER=1
|
||||||
ENV NODE_VERSION=19.x
|
ENV NODE_MAJOR=18
|
||||||
ARG HOST_UID=1000
|
ARG HOST_UID=1000
|
||||||
ENV USER=www-data
|
ENV USER=www-data
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
@@ -26,9 +26,12 @@ RUN apt-get update && apt-get install -y \
|
|||||||
nano \
|
nano \
|
||||||
cron
|
cron
|
||||||
|
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
|
# Install Nodejs
|
||||||
# Install Node
|
RUN apt-get update && apt-get install -y ca-certificates curl gnupg
|
||||||
RUN apt-get install -y nodejs
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||||
|
RUN apt-get update && apt-get install nodejs -y
|
||||||
|
|
||||||
# Clear cache
|
# Clear cache
|
||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
# Install Kafka
|
# Install Kafka
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
sqlite3 \
|
sqlite3 \
|
||||||
nano \
|
nano \
|
||||||
cron
|
cron
|
||||||
|
# Install Nodejs
|
||||||
RUN apt-get update && apt-get install -y ca-certificates curl gnupg
|
RUN apt-get update && apt-get install -y ca-certificates curl gnupg
|
||||||
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||||
|
|||||||
Reference in New Issue
Block a user