FROM alpine:3.11 LABEL maintainer="Robert Kaussow " \ org.label-schema.name="bitwardenrs_ldap" \ org.label-schema.version="1.2" \ org.label-schema.vendor="Robert Kaussow" \ org.label-schema.schema-version="1.0" RUN addgroup -g 101 -S app && \ adduser -S -D -H -u 101 -h /app -s /sbin/nologin -G app -g app app && \ apk --update add --virtual .build-deps tar curl && \ apk --update add ca-certificates && \ curl -SsL -o /usr/local/bin/gomplate https://github.com/hairyhenderson/gomplate/releases/download/v3.5.0/gomplate_linux-amd64-slim && \ chmod 755 /usr/local/bin/gomplate && \ apk del .build-deps && \ rm -rf /var/cache/apk/* && \ rm -rf /tmp/* && \ mkdir -p /app && \ chown -R app:app /app ADD overlay/ / ADD source/target/x86_64-unknown-linux-musl/release/bitwarden_rs_ldap /app VOLUME /app/data USER app STOPSIGNAL SIGTERM ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] WORKDIR /app CMD []