From 29ac37c8ea550b95188a47d6fad5aa61eb432f45 Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Tue, 18 May 2021 20:50:18 +0200 Subject: [PATCH] copy init script earlier than we change /srv owner That would prevent entrypoint script (https://github.com/umputun/baseimage/blob/master/base.alpine/files/init.sh) failure on init.sh while running as "app" and not "root" --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4a77d53e..17ca9c9f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,12 +71,12 @@ RUN chmod +x /entrypoint.sh /usr/local/bin/backup /usr/local/bin/restore /usr/lo COPY --from=build-backend /build/backend/remark42 /srv/remark42 COPY --from=build-backend /build/backend/templates /srv COPY --from=build-frontend /srv/frontend/public/ /srv/web +COPY docker-init.sh /srv/init.sh RUN chown -R app:app /srv RUN ln -s /srv/remark42 /usr/bin/remark42 EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=3s CMD curl --fail http://localhost:8080/ping || exit 1 -COPY docker-init.sh /srv/init.sh RUN chmod +x /srv/init.sh CMD ["/srv/remark42", "server"]