Started Opensearch migration
This commit is contained in:
@@ -1,20 +1,25 @@
|
||||
FROM golang:1.16.0-buster as builder
|
||||
|
||||
WORKDIR /app
|
||||
RUN go get github.com/docker/docker/api/types github.com/docker/docker/api/types/container github.com/docker/docker/client
|
||||
#RUN go get github.com/docker/docker/api/types github.com/docker/docker/api/types/container github.com/docker/docker/client
|
||||
|
||||
#RUN go env -w GO111MODULE=auto
|
||||
COPY worker.go /app/worker.go
|
||||
RUN go mod init worker
|
||||
RUN go get github.com/docker/docker/api/types && \
|
||||
go get github.com/docker/docker/api/types/container && \
|
||||
go get github.com/docker/docker/client && \
|
||||
go get github.com/gorilla/mux && \
|
||||
go get github.com/patrickmn/go-cache && \
|
||||
go get github.com/frikky/shuffle-shared && \
|
||||
go get github.com/satori/go.uuid && \
|
||||
go get github.com/fsouza/go-dockerclient && \
|
||||
go get google.golang.org/grpc/balancer/grpclb@v1.37.1
|
||||
COPY go.mod /app/go.mod
|
||||
COPY go.sum /app/go.sum
|
||||
RUN go get
|
||||
|
||||
#RUN go mod init worker
|
||||
#RUN go get
|
||||
#RUN go get github.com/docker/docker/api/types && \
|
||||
# go get github.com/docker/docker/api/types/container && \
|
||||
# go get github.com/docker/docker/client && \
|
||||
# go get github.com/gorilla/mux && \
|
||||
# go get github.com/patrickmn/go-cache && \
|
||||
# go get github.com/frikky/shuffle-shared && \
|
||||
# go get github.com/satori/go.uuid && \
|
||||
# go get github.com/fsouza/go-dockerclient && \
|
||||
# go get google.golang.org/grpc/balancer/grpclb@v1.37.1
|
||||
|
||||
RUN go build
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o worker .
|
||||
|
||||
Reference in New Issue
Block a user