Fix: [WARNING]: Empty continuation line found in
Dec 18, 2024
The warning message indicates that there are empty continuation lines in your Dockerfile, which might become errors in future releases of Docker. To fix this, you need to ensure that each line in your multi-line commands ends with a backslash (\
) and that there are no empty lines between them.
An example of a bad Dockerfile
RUN apt-get update \
&& apt-get upgrade \
&& apt-get -y install nodejs \
&& apt-get clean \
Quick Fix:
Remove any last slash, and here we removed the slash after apt-get clean
RUN apt-get update \
&& apt-get upgrade \
&& apt-get -y install nodejs \
&& apt-get clean