Skip to content

Commit 2a9839e

Browse files
heliocastrotsteenbe
authored andcommitted
docker: Execute apt operation as superuser
Signed-off-by: Helio Chissini de Castro <[email protected]>
1 parent c3ac7f4 commit 2a9839e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,11 @@ RUN [ -d /etc/scripts ] && sudo rm -rf /etc/scripts
371371
# Apt install commands.
372372
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
373373
--mount=type=cache,target=/var/lib/apt,sharing=locked \
374-
apt-get update && \
375-
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
374+
sudo apt-get update && \
375+
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends \
376376
php \
377377
subversion \
378-
&& rm -rf /var/lib/apt/lists/*
378+
&& sudo rm -rf /var/lib/apt/lists/*
379379

380380
# Python
381381
ENV PYENV_ROOT=/opt/python

0 commit comments

Comments
 (0)