Skip to content

Commit

Permalink
Improve building time
Browse files Browse the repository at this point in the history
  • Loading branch information
ostefano committed Feb 27, 2025
1 parent 7c62805 commit 70eabbe
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,6 @@ jobs:
provenance: false
files: docker-bake.hcl, env.hcl
targets: ${{ matrix.target }}
set:
*.cache-from=type=gha
*.cache-to=type=gha,mode=max
3 changes: 3 additions & 0 deletions .github/workflows/test-build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ jobs:
provenance: false
files: docker-bake.hcl, env.hcl
targets: ${{ matrix.target }}
set:
*.cache-from=type=gha
*.cache-to=type=gha,mode=max
14 changes: 7 additions & 7 deletions core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARG DOCKER_HUB_PROXY=""


FROM "${DOCKER_HUB_PROXY}python:3.12-slim-bookworm" AS php-base
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

# Uncomment when building in corporate environments
# COPY ./cert.pem /usr/local/share/ca-certificates/rootca.pem
Expand All @@ -15,8 +15,8 @@ FROM "${DOCKER_HUB_PROXY}python:3.12-slim-bookworm" AS php-base


FROM php-base AS composer-build
ENV DEBIAN_FRONTEND noninteractive
ENV COMPOSER_ALLOW_SUPERUSER 1
ENV DEBIAN_FRONTEND=noninteractive
ENV COMPOSER_ALLOW_SUPERUSER=1
ARG CORE_TAG
ARG CORE_COMMIT

Expand Down Expand Up @@ -48,8 +48,8 @@ FROM php-base AS composer-build


FROM php-base AS php-build
ENV DEBIAN_FRONTEND noninteractive
ENV TZ Etc/UTC
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Etc/UTC

RUN apt-get install -y --no-install-recommends \
gcc \
Expand Down Expand Up @@ -83,7 +83,7 @@ FROM php-base AS php-build
RUN cd /tmp/pecl-text-ssdeep && phpize && ./configure && make && make install

FROM php-base AS python-build
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive
ARG CORE_TAG
ARG CORE_COMMIT
ARG PYPI_REDIS_VERSION
Expand Down Expand Up @@ -161,7 +161,7 @@ EOF


FROM php-base
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive
ARG CORE_TAG
ARG CORE_COMMIT
ARG PHP_VER
Expand Down
4 changes: 2 additions & 2 deletions modules/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG DOCKER_HUB_PROXY=""

FROM "${DOCKER_HUB_PROXY}python:3.12-slim-bookworm" AS python-build
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive
ARG MODULES_TAG
ARG MODULES_COMMIT
ARG MODULES_INSTALL_FLAG
Expand Down Expand Up @@ -47,7 +47,7 @@ EOF


FROM "${DOCKER_HUB_PROXY}python:3.12-slim-bookworm"
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y --no-install-recommends \
libglib2.0-0 \
Expand Down

0 comments on commit 70eabbe

Please sign in to comment.