FROM registry.fedoraproject.org/fedora-minimal LABEL maintainer="" # install gsutil # https://cloud.google.com/storage/docs/gsutil_install#redhat COPY gsutil.repo /etc/yum.repos.d/google-cloud-sdk.repo RUN microdnf -y install libxcrypt-compat.x86_64 mariadb \ google-cloud-cli shadow-utils gzip RUN groupadd --gid 1666 svc && \ useradd --uid 1666 --gid svc \ --shell /bin/bash --create-home svc && \ mkdir -p /home/svc && \ chown svc /home/svc -R COPY entrypoint.sh /home/svc/entrypoint.sh USER svc CMD ["/home/svc/entrypoint.sh"]