reordered Dockerfile for faster compile

This commit is contained in:
2025-11-24 14:35:28 +00:00
parent 4169573f40
commit eb7b1ddae8

View File

@@ -2,8 +2,6 @@ FROM debian:latest as builder
WORKDIR /app WORKDIR /app
COPY icecast.xml.template /etc/icecast2/icecast.xml.template
COPY entrypoint.sh /entrypoint.sh
RUN apt-get update \ RUN apt-get update \
&& apt-get install --yes icecast2 gettext && apt-get install --yes icecast2 gettext
@@ -12,4 +10,7 @@ RUN useradd radio
RUN chown -R radio:radio /etc/icecast2 /var/log/icecast2 RUN chown -R radio:radio /etc/icecast2 /var/log/icecast2
USER radio USER radio
COPY icecast.xml.template /etc/icecast2/icecast.xml.template
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ] ENTRYPOINT [ "/entrypoint.sh" ]