Skip to content

Commit f2e0663

Browse files
committed
build(dockerfile): change image
1 parent 51f7ac5 commit f2e0663

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Dockerfile

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use the latest version of Ubuntu
2-
FROM ubuntu:latest
2+
FROM ubuntu:20.04
33

44
# Avoid prompts from apt
55
ENV DEBIAN_FRONTEND=noninteractive
@@ -15,11 +15,8 @@ RUN apt-get update && apt-get install -y \
1515
llvm \
1616
libclang-dev
1717

18-
# Function to retry commands
19-
RUN echo 'retry() { for i in $(seq 1 5); do $@ && return 0 || sleep 15; done; return 1; }' >> ~/.bashrc
20-
2118
# Install PHP 8.0, 8.1, 8.2, 8.3 using retry logic
22-
RUN . ~/.bashrc && retry add-apt-repository ppa:ondrej/php -y && apt-get update && apt-get install -y \
19+
RUN LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php && apt-get update && apt-get install -y \
2320
php8.0 php8.0-cli php8.0-common php8.0-dev \
2421
php8.1 php8.1-cli php8.1-common php8.1-dev \
2522
php8.2 php8.2-cli php8.2-common php8.2-dev \

0 commit comments

Comments
 (0)