Skip to content

Commit cbe58d0

Browse files
committed
(feat): Edit /etc/hosts
This change aims to hopefully improve the image by removing the dns lookup for "localtest.me" Signed-off-by: Victor Otieno <victor@slick.co.ke>
1 parent 5a427c3 commit cbe58d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
2727
RUN apt-get update -y \
2828
&& apt-get install -y php8.2 nodejs=18.15.0-1nodesource1 yarn \
2929
&& apt reinstall fonts-noto-color-emoji
30+
31+
# Edit /etc/hosts
32+
RUN echo -e "127.0.0.1 localtest.me\n::1 localtest.me" > /etc/hosts

0 commit comments

Comments
 (0)