benthosdev / benthos-lab

A web app for writing, executing and sharing Benthos pipeline configurations
https://lab.benthos.dev
MIT License
47 stars 8 forks source link

Add Dockerfile without pre-vendoring #16

Closed ilyaglow closed 4 years ago

ilyaglow commented 4 years ago

Hi there,

I added a novendor.Dockerfile, that can be used without doing go mod vendor first.

It allows users to build benthos-lab directly from the repository without even cloning it, like this:

docker build -t benthos-lab https://github.com/ilyaglow/benthos-lab.git#novendor-dockerfile -f novendor.Dockerfile

Also, I reduced the number of RUN command layers and removed the WORKDIR command in the package stage, which is unnecessary since it's a default working directory.

Jeffail commented 4 years ago

Thanks @ilyaglow!