FROM alpine:latest

ARG WWWGROUP

RUN apk add --no-cache shadow
RUN groupadd --force -g $WWWGROUP yacht
RUN useradd -ms /bin/bash --no-user-group -g $WWWGROUP -u 1337 yacht

COPY --chown=yacht:yacht ../../../ /var/www/html/

# Run a no-op entry point and wait to host Mutagen agent processes.
ENTRYPOINT ["tail", "-f", "/dev/null"]
