testing cleaner build

This commit is contained in:
2023-10-15 00:19:25 +05:00
parent 5330168595
commit 8c17953315
4 changed files with 219 additions and 0 deletions

20
.build/fpm.Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM git.shihaam.dev/dockerfiles/php-fpm:8.2.3
SHELL ["/bin/bash", "-c"]
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN --mount=type=cache,target=/var/cache/apt \
apt update && install locales -y \
&& apt auto-remove -y \
&& apt clean -y
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
&& locale-gen
RUN --mount=type=cache,target=/var/cache/apt \
apt update && apt install bzip2 zip unzip git gnupg2 ca-certificates lsb-release apt-transport-https wget curl nano vim -y --no-install-recommends \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*