Skip to content

Commit d3a19f4

Browse files
authored
Merge pull request #201 from apple/fix-5.3-dockerfiles
Don't use yum update in the Dockerfile
2 parents fb1db30 + 5f0f500 commit d3a19f4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

5.3/amazonlinux/2/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM amazonlinux:2
22
LABEL maintainer="Swift Infrastructure <[email protected]>"
33
LABEL description="Docker Container for the Swift programming language"
44

5-
RUN yum -y update && yum -y install \
5+
RUN yum -y install \
66
binutils \
77
gcc \
88
git \

5.3/amazonlinux/2/slim/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ RUN set -e; \
2929
&& gpg --batch --quiet --keyserver ha.pool.sks-keyservers.net --recv-keys "$SWIFT_SIGNING_KEY" \
3030
&& gpg --batch --verify swift.tar.gz.sig swift.tar.gz \
3131
# - Unpack the toolchain, set libs permissions, and clean up.
32-
&& yum -y update && yum -y install tar gzip \
32+
&& yum -y install tar gzip \
3333
&& tar -xzf swift.tar.gz --directory / --strip-components=1 $SWIFT_VERSION-$SWIFT_PLATFORM/usr/lib/swift/linux \
3434
&& chmod -R o+r /usr/lib/swift \
3535
&& rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz \

5.3/centos/8/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LABEL description="Docker Container for the Swift programming language"
44

55
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
66

7-
RUN yum -y update && yum install --enablerepo=PowerTools -y \
7+
RUN yum install --enablerepo=PowerTools -y \
88
binutils \
99
gcc \
1010
git \

0 commit comments

Comments
 (0)