Skip to content

Commit facec54

Browse files
author
Dominique Quatravaux
committed
[workaround] curl/curl#3750
Old curl + new (GitHub's) nginx = no dice.
1 parent 8e8dda2 commit facec54

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

docker/wp-base/Dockerfile

+8-1
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,18 @@ ENV NODE_VERSION_MAJOR=14
77
ENV DEBIAN_FRONTEND=noninteractive
88

99
RUN apt-get -qy update && \
10-
apt-get -qy install curl ca-certificates \
10+
apt-get -qy install ca-certificates \
1111
software-properties-common apt-transport-https gnupg awscli && \
1212
apt-get -qy autoremove && \
1313
apt-get clean
1414

15+
# https://github.com/curl/curl/issues/3750
16+
RUN set -e -x; add-apt-repository ppa:savoury1/backports; \
17+
(echo "Package: *" ; \
18+
echo "Pin: release o=LP-PPA-xapienz-curl34" ; \
19+
echo "Pin-Priority: 600" ) > /etc/apt/preferences.d/xapienz; \
20+
apt-get -qy update; apt-get -qy install curl
21+
1522
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION_MAJOR}.x | bash -
1623

1724
RUN apt-get -qy update && apt-get -qy install --no-install-recommends \

0 commit comments

Comments
 (0)