1234567891011121314151617181920 |
- FROM alpine as runner
- ARG NAME
- ARG ENVIRONMENT
- ARG TZ
- ENV NAME=${NAME}
- ENV ENVIRONMENT=${ENVIRONMENT}
- ENV TZ=${TZ}
- # COPY /etc/ssl/certs/ca-bundle.pem /etc/ssl/cert.pem
- COPY . .
- RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
- RUN apk add tzdata
- RUN cp /usr/share/zoneinfo/${TZ} /etc/localtime
- RUN echo "${TZ}" > /etc/timezone
- RUN chmod 755 ${NAME}
- # COPY /etc/ssl/certs/ca-certificates.crt /etc/ssl/cert
- ENTRYPOINT ["sh", "-c", "./$NAME -f etc/$NAME.$ENVIRONMENT.toml"]
|