github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/test/Dockerfile (about)

     1  FROM alpine:3.12.1
     2  
     3  COPY --from=golang:1.15-alpine /usr/local/go/ /usr/local/go/
     4  ENV PATH="/usr/local/go/bin:${PATH}"
     5  
     6  RUN apk --no-cache add make git gcc libtool musl-dev curl bash
     7  RUN apk add ca-certificates && rm -rf /var/cache/apk/* /tmp/*
     8  
     9  RUN         apk add --update ca-certificates openssl tar && \
    10              wget https://github.com/coreos/etcd/releases/download/v3.4.7/etcd-v3.4.7-linux-amd64.tar.gz && \
    11              tar xzvf etcd-v3.4.7-linux-amd64.tar.gz && \
    12              mv etcd-v3.4.7-linux-amd64/etcd* /bin/ && \
    13              apk del --purge tar openssl && \
    14              rm -Rf etcd-v3.4.7-linux-amd64* /var/cache/apk/*
    15  VOLUME      /data
    16  EXPOSE      2379 2380 4001 7001
    17  ADD         scripts/run-etcd.sh /bin/run.sh
    18  
    19  COPY . .
    20  RUN go get github.com/micro/services
    21  RUN go get github.com/micro/services/helloworld
    22  
    23  COPY ./micro /micro
    24  ENTRYPOINT ["sh", "/bin/run.sh"]