Add Permission Configurations to Dockerfile

This commit is contained in:
sarahelsagheir
2024-11-08 23:25:41 +03:00
committed by GitHub
parent bcf31cf908
commit c46c5655b2
2 changed files with 21 additions and 0 deletions

View File

@@ -4,6 +4,10 @@ COPY php.ini /usr/local/etc/php/
COPY docker.conf /usr/local/etc/php-fpm.d/docker.conf
COPY .bashrc /root/
# Copy the entrypoint script
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
# mix
RUN apt-get update \
&& apt-get install -y build-essential zlib1g-dev default-mysql-client curl gnupg procps vim git unzip libzip-dev libpq-dev \
@@ -53,3 +57,7 @@ RUN git clone https://github.com/seebi/dircolors-solarized
EXPOSE 5173
WORKDIR /var/www
#entrypoint
ENTRYPOINT ["entrypoint.sh"]
CMD ["php-fpm"]