Imagen ubuntu:trusty + go 1.8.3 + gin-gonic + dependencias para microservicios
532
Diciembre 4, 2018
Versión: Última estable Go (1.8.3)
RUN mv go /usr/local
RUN apt-get install -y --force-yes git \
&& apt-get update
RUN apt-get install -y --force-yes build-essential
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
WORKDIR $GOPATH
RUN go get -u gopkg.in/gin-gonic/gin.v1
RUN go get -u gopkg.in/gorethink/gorethink.v3
RUN go get -u github.com/itsjamie/gin-cors
RUN go get -u github.com/joho/godotenv
RUN go get -u github.com/codahale/blake2
RUN go get -u github.com/blevesearch/bleve
RUN go get -u gopkg.in/gomail.v2
RUN go get -u github.com/gocarina/gocsv
RUN go get -u github.com/NaySoftware/go-fcm
RUN go get -u github.com/alecthomas/geoip
RUN go get -u github.com/alecthomas/geoip/cmd/geoip
RUN rm -rf /go1.8.3.linux-amd64.tar.gz
CMD /bin/bash
EXPOSE 8080
$ docker pull devnichossociales/golang-microservices
$ docker run -d [--name nombre_contenedor] -p XXXX:8080 devnichossociales/golang-microservices
Content type
Image
Digest
Size
519.7 MB
Last updated
almost 8 years ago
docker pull devnichossociales/golang-microservices