mirror of
https://github.com/jkaninda/laravel-php-fpm.git
synced 2025-12-08 01:39:37 +01:00
Refactoring
This commit is contained in:
@@ -3,6 +3,8 @@ ARG WORKDIR=/var/www/html
|
||||
ENV DOCUMENT_ROOT=${WORKDIR}
|
||||
ENV LARAVEL_PROCS_NUMBER=1
|
||||
ENV NODE_VERSION=16.x
|
||||
ARG HOST_UID=1000
|
||||
ENV USER=www-data
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
@@ -82,8 +84,8 @@ ENTRYPOINT ["entrypoint.sh"]
|
||||
|
||||
|
||||
|
||||
RUN usermod -u 1000 www-data
|
||||
RUN groupmod -g 1000 www-data
|
||||
RUN usermod -u ${HOST_UID} www-data
|
||||
RUN groupmod -g ${HOST_UID} www-data
|
||||
|
||||
RUN chmod -R 755 $WORKDIR
|
||||
RUN chown -R www-data:www-data $WORKDIR
|
||||
|
||||
@@ -3,6 +3,8 @@ ARG WORKDIR=/var/www/html
|
||||
ENV DOCUMENT_ROOT=${WORKDIR}
|
||||
ENV LARAVEL_PROCS_NUMBER=1
|
||||
ENV NODE_VERSION=16.x
|
||||
ARG HOST_UID=1000
|
||||
ENV USER=www-data
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
@@ -82,8 +84,8 @@ ENTRYPOINT ["entrypoint.sh"]
|
||||
|
||||
|
||||
|
||||
RUN usermod -u 1000 www-data
|
||||
RUN groupmod -g 1000 www-data
|
||||
RUN usermod -u ${HOST_UID} www-data
|
||||
RUN groupmod -g ${HOST_UID} www-data
|
||||
|
||||
RUN chmod -R 755 $WORKDIR
|
||||
RUN chown -R www-data:www-data $WORKDIR
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
FROM php:8.1.11-fpm
|
||||
FROM php:8.1.13-fpm
|
||||
ARG WORKDIR=/var/www/html
|
||||
ENV DOCUMENT_ROOT=${WORKDIR}
|
||||
ENV LARAVEL_PROCS_NUMBER=1
|
||||
ENV NODE_VERSION=17.x
|
||||
ARG HOST_UID=1000
|
||||
ENV USER=www-data
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
@@ -81,9 +83,8 @@ RUN ln -s /usr/local/bin/entrypoint.sh /
|
||||
ENTRYPOINT ["entrypoint.sh"]
|
||||
|
||||
|
||||
|
||||
RUN usermod -u 1000 www-data
|
||||
RUN groupmod -g 1000 www-data
|
||||
RUN usermod -u ${HOST_UID} www-data
|
||||
RUN groupmod -g ${HOST_UID} www-data
|
||||
|
||||
RUN chmod -R 755 $WORKDIR
|
||||
RUN chown -R www-data:www-data $WORKDIR
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
FROM php:8.2.0RC5-fpm
|
||||
FROM php:8.2.0-fpm
|
||||
ARG WORKDIR=/var/www/html
|
||||
ENV DOCUMENT_ROOT=${WORKDIR}
|
||||
ENV LARAVEL_PROCS_NUMBER=1
|
||||
ENV NODE_VERSION=17.x
|
||||
ARG HOST_UID=1000
|
||||
ENV USER=www-data
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
@@ -24,9 +26,9 @@ RUN apt-get update && apt-get install -y \
|
||||
nano \
|
||||
cron
|
||||
|
||||
#RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION} | bash -
|
||||
# Install Node
|
||||
#RUN apt-get install -y nodejs
|
||||
RUN apt-get install -y nodejs
|
||||
# Clear cache
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||
# Install Kafka
|
||||
@@ -82,8 +84,8 @@ ENTRYPOINT ["entrypoint.sh"]
|
||||
|
||||
|
||||
|
||||
RUN usermod -u 1000 www-data
|
||||
RUN groupmod -g 1000 www-data
|
||||
RUN usermod -u ${HOST_UID} www-data
|
||||
RUN groupmod -g ${HOST_UID} www-data
|
||||
|
||||
RUN chmod -R 755 $WORKDIR
|
||||
RUN chown -R www-data:www-data $WORKDIR
|
||||
|
||||
Reference in New Issue
Block a user