refactor: compact dockerfile

This commit is contained in:
2024-10-14 12:44:24 +03:00
parent 8f446edc47
commit d33a6d16d8
2 changed files with 2 additions and 21 deletions

View File

@@ -1,10 +1,6 @@
FROM phpdockerio/php:8.2-fpm
WORKDIR "/application"
# ENV SUPERCRONIC_URL=https://github.com/aptible/supercronic/releases/download/v0.2.29/supercronic-linux-amd64 \
# SUPERCRONIC=supercronic-linux-amd64 \
# SUPERCRONIC_SHA1SUM=cd48d45c4b10f3f0bfdd3a57d054cd05ac96812b
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
RUN apt-get update && \
apt-get -y --no-install-recommends install \
@@ -14,17 +10,9 @@ RUN apt-get update && \
php8.2-sqlite3 \
php8.2-intl \
php8.2-pgsql \
python3-pkg-resources supervisor \
python3-pkg-resources supervisor ffmpeg jpegoptim \
nodejs && npm install -g npm@10.1.0 \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
RUN apt-get update && \
apt-get install -y \
ffmpeg \
jpegoptim && \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
ENV PATH=node_modules/.bin:$PATH

View File

@@ -3,14 +3,7 @@ WORKDIR "/application"
RUN apt-get update && \
apt-get -y --no-install-recommends install git \
php8.2-gd php8.2-mysql php8.2-sqlite3 php8.2-pgsql \
php8.2-gd php8.2-mysql php8.2-sqlite3 php8.2-pgsql ffmpeg jpegoptim \
python3-pkg-resources supervisor && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
RUN apt-get update && \
apt-get install -y \
ffmpeg \
jpegoptim && \
apt-get clean; \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*