base on alpine:3.8, add `wait-for-it.sh` and `zoneinfo.zip` for Golang
1M+
wait-for-it.shwait-for-it.sh is a pure bash script that will wait on the availability of a host and TCP port. It is useful for synchronizing the spin-up of interdependent services, such as linked docker containers. Since it is a pure bash script, it does not have any external dependencies.
More:
github.com/vishnubob/wait-for-it
3.8FROM alpine:3.8
LABEL maintainer="[email protected]"
COPY zoneinfo.zip /usr/local/go/lib/time/zoneinfo.zip
COPY wait-for-it.sh /usr/local/bin/wait-for-it.sh
COPY zoneinfo/Asia/Shanghai /etc/localtime
RUN echo "Asia/Shanghai" > /etc/timezone \
&& echo "https://mirrors.ustc.edu.cn/alpine/v3.8/main/" > /etc/apk/repositories \
&& chmod 777 /usr/local/bin/wait-for-it.sh \
&& apk add --no-cache \
ca-certificates \
openssh \
bash
Content type
Image
Digest
sha256:887a69d6f…
Size
7 MB
Last updated
about 4 years ago
docker pull zaaksam/alpine:3.15