# syntax=docker/dockerfile:latest
# Probably from this file: https://github.com/nextcloud/whiteboard/blob/main/Dockerfile
FROM ghcr.io/nextcloud-releases/whiteboard:v1.4.0

USER root
RUN set -ex; \
    apk upgrade --no-cache -a; \
    apk add --no-cache bash; \
    chmod 777 -R /tmp
USER 65534

COPY --chmod=775 start.sh /start.sh
COPY --chmod=775 healthcheck.sh /healthcheck.sh

HEALTHCHECK CMD /healthcheck.sh

WORKDIR /tmp

ENTRYPOINT ["/start.sh"]

LABEL com.centurylinklabs.watchtower.enable="false" \
    org.label-schema.vendor="Nextcloud"
