Skip to content

Commit df86541

Browse files
authored
Modify Dockerfile to use HTTPS for ubuntu repo
Rearranged useradd command and ensured HTTPS for APT sources.
1 parent f6263e9 commit df86541

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile-core

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ USER root
2525
WORKDIR /opt/countly
2626
COPY . .
2727

28-
RUN useradd -r -M -U -d /opt/countly -s /bin/false countly && \
28+
RUN sed -i 's|http://|https://|g' /etc/apt/sources.list && \
29+
find /etc/apt/sources.list.d -name '*.list' -exec sed -i 's|http://|https://|g' {} + || true && \
30+
echo 'Acquire::Retries "3";' > /etc/apt/apt.conf.d/80-retries && \
31+
useradd -r -M -U -d /opt/countly -s /bin/false countly && \
2932
apt-get update && \
3033
apt-get install -y \
3134
# standard

0 commit comments

Comments
 (0)