FROM docker.io/debian:12-slim as base ENV DEBIAN_FRONTEND=noninteractive WORKDIR /app/ FROM base as build RUN apt-get update \ && apt-get install -y --no-install-recommends \ ca-certificates \ curl \ && rm -rf /var/lib/apt/lists/* ARG APP="http://app.com/download" RUN curl -L "$APP" | tar xz --strip-components=1 FROM base COPY --from=build /app/ . COPY entrypoint.sh /usr/local/bin/ RUN useradd -m app VOLUME /config/ EXPOSE 80 ENTRYPOINT ["entrypoint.sh"] CMD ["./app"]