Skip to content

Commit ceb0dda

Browse files
authored
Refactor Dockerfile to be more robust - layer caching issue (#919)
1 parent a6ac4e6 commit ceb0dda

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.ddev/web-build/Dockerfile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,13 @@ FROM $BASE_IMAGE
44
# For being able to optimize images as part of theme compilation, we install
55
# extra tools here - in a non-interactive way, also trying to avoid extra
66
# packages that would increase the image size.
7-
RUN DEBIAN_FRONTEND=noninteractive apt-get --fix-missing update || true
8-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests optipng jpegoptim
7+
RUN set -eux; \
8+
apt-get update; \
9+
DEBIAN_FRONTEND=noninteractive apt-get install -y \
10+
-o Dpkg::Options::="--force-confold" \
11+
--no-install-recommends \
12+
--no-install-suggests \
13+
optipng \
14+
jpegoptim; \
15+
apt-get clean; \
16+
rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)