Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

Use go modules, upgrade dependencies, add skaffold.dev #80

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
15 changes: 11 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.12.9 AS build

FROM alpine:3.4
MAINTAINER Timothy St. Clair "[email protected]"
WORKDIR /src/
COPY . .

RUN CGO_ENABLED=0 go build -mod=vendor -o /src/eventrouter

FROM alpine:3.9 as release

WORKDIR /app
RUN apk update --no-cache && apk add ca-certificates
ADD eventrouter /eventrouter
COPY --from=build /src/eventrouter .
USER nobody:nobody

CMD ["/bin/sh", "-c", "/eventrouter -v 3 -logtostderr"]

ENTRYPOINT [ "./eventrouter" ]
CMD ["-v", "3", "-logtostderr"]
Loading