Skip to content

Commit

Permalink
Minor: Split RUN commands into groups in Dockerfile and removed unnec…
Browse files Browse the repository at this point in the history
…essary dockerignore
  • Loading branch information
sergiolaverde0 committed Jan 15, 2024
1 parent ca94438 commit b490914
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

12 changes: 7 additions & 5 deletions docker/PhpDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ FROM php:8.2-apache
RUN curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh \
&& chmod +x ./nodesource_setup.sh \
&& ./nodesource_setup.sh \
&& rm ./nodesource_setup.sh \
&& apt-get update \
&& rm ./nodesource_setup.sh

RUN apt-get update \
&& apt-get install --no-install-recommends -y \
curl \
libonig-dev \
Expand All @@ -18,9 +19,10 @@ RUN curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh \
zip \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
# install php extensions for laravel
&& docker-php-ext-install pdo pdo_mysql fileinfo \
&& rm -rf /var/lib/apt/lists/*

# install php extensions for laravel
RUN docker-php-ext-install pdo pdo_mysql fileinfo \
&& docker-php-ext-configure gd \
&& docker-php-ext-install "-j$(nproc)" gd \
&& docker-php-ext-install pdo_mysql \
Expand Down
5 changes: 3 additions & 2 deletions docker/PythonDockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ RUN apt-get update -y \
python3 \
pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& pip install -U --no-cache-dir \
&& rm -rf /var/lib/apt/lists/*

RUN pip install -U --no-cache-dir \
setuptools \
wheel \
#youtube api
Expand Down

0 comments on commit b490914

Please sign in to comment.