Apply hadolint suggestion

This commit is contained in:
Rene Leonhardt 2023-10-31 14:29:26 +01:00
parent 54218d0cab
commit de9764ed04
No known key found for this signature in database
GPG Key ID: F3648D7E366BF1B4

View File

@ -10,7 +10,7 @@ FROM alpine:3.18 AS runtime
ARG APP
RUN addgroup -g 1000 -S ${APP} && adduser -u 1000 -S ${APP} -G ${APP} --home /app \
&& echo -e "#!/bin/sh\nexec /usr/local/bin/${APP} \$@" > /app/entrypoint.sh \
&& printf "#!/bin/sh\nexec /usr/local/bin/%s \$@" "${APP}" > /app/entrypoint.sh \
&& chmod +x /app/entrypoint.sh
FROM alpine:3.18