Article 4SERD How to Dockerize Golang Project

How to Dockerize Golang Project

by
hesisaboury
from LinuxQuestions.org on (#4SERD)
Hi
I have no experience with golang, what i want is dockerizing Envoy-xDS project, here is the link
https://medium.com/@salmaan.rashid/e...d-2f49b2865f29
i wrote this Dockerfile , but there is an error

FROM golang

WORKDIR /app
COPY . .
RUN go get github.com/envoyproxy/go-control-plane/envoy/api/v2 \
github.com/envoyproxy/go-control-plane/envoy/api/v2/auth \
github.com/envoyproxy/go-control-plane/envoy/api/v2/core \
github.com/envoyproxy/go-control-plane/envoy/api/v2/listener \
github.com/envoyproxy/go-control-plane/envoy/api/v2/route \
github.com/envoyproxy/go-control-plane/envoy/config/filter/network/http_connection_manager/v2 \
github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v2 \
github.com/envoyproxy/go-control-plane/envoy/service/accesslog/v2 \
github.com/envoyproxy/go-control-plane/envoy/service/discovery/v2 \
github.com/envoyproxy/go-control-plane/pkg/cache \
github.com/envoyproxy/go-control-plane/pkg/server \
github.com/envoyproxy/go-control-plane/pkg/wellknown \
github.com/golang/protobuf/ptypes \
github.com/sirupsen/logrus \
google.golang.org/grpc

CMD ["go","run","main.go"]

**********************
main.go:22:2: cannot find package "accesslogs" in any of:
/usr/local/go/src/accesslogs (from $GOROOT)
/go/src/accesslogs (from $GOPATH)

Any Suggestionlatest?d=yIl2AUoC8zA latest?i=NhHlW7ZreyU:-oMZOHvjG74:F7zBnMy latest?i=NhHlW7ZreyU:-oMZOHvjG74:V_sGLiP latest?d=qj6IDK7rITs latest?i=NhHlW7ZreyU:-oMZOHvjG74:gIN9vFwNhHlW7ZreyU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments