FROM scratch ARG REGISTRY ARG REGISTRY_USERNAME ARG REGISTRY_PASSWORD RUN ["docker", "login", "${REGISTRY}", "-u${REGISTRY_USERNAME}", "-p${REGISTRY_PASSWORD}"] FROM registy.fedy95.com/baseimage-autossl:latest ARG DOMAIN ARG GD_Key ARG GD_Secret RUN ["export", "${GD_Key}"] RUN ["export", "${GD_Secret}"] RUN ["acme.sh", "--issue", "--dns", "dns_gd", "-d", "${DOMAIN}", "--reloadcmd", "'/usr/syno/sbin/synoservicecfg --reload httpd-sys'"] RUN ["docker", "logout", "${REGISTRY}"]