From 77d7f262ce43c85c9e5df7937e17fc9dec015c45 Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Wed, 1 Aug 2018 21:01:22 -0600 Subject: [PATCH] increase complexity? --- .drone.yml | 12 ++++++------ Dockerfile | 6 +++++- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 369c1d3..50ea9ee 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,10 +12,10 @@ pipeline: commands: - go get - go build + docker: + image: docker:latest + commands: + - docker build -t deadbeef.codes:5000/mandelmapper:latest . + - docker push deadbeef.codes:5000/mandelmapper:latest - publish: - image: plugins/docker - repo: deadbeef.codes:5001/steven/mandelmap - registry: deadbeef.codes:5001 -# auto_tag: true -# auto_tag_suffix: linux-rpi3 \ No newline at end of file + \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 57a2838..0f79d87 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,8 @@ +FROM golang:latest +WORKDIR /go/src/deadbeef.codes/steven/mandelmapper +RUN GOOS=linux GOARCH=arm GOARM=7 go build + FROM resin/raspberrypi3-alpine -COPY mandelmapper /usr/bin +COPY --from=0 mandelmapper /usr/bin EXPOSE 6161:6161 CMD mandelmapper