generated from infra/template
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
486 B
20 lines
486 B
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}"]
|