diff --git a/.drone.yml b/.drone.yml index 464cdf1..91fff1f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,4 +11,15 @@ steps: IMGUR_CLIENT_ID: from_secret: imgur_client_id YOUTUBE_KEY: - from_secret: youtube_key \ No newline at end of file + from_secret: youtube_key + - name: docker + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: registry.meow.tf/tyler/linkinfo + registry: registry.meow.tf + tags: + - latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..33daec9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM golang:alpine AS build-env + +ADD . /src +RUN apk --no-cache add git gcc musl-dev +RUN cd /src && go get -d && go build -o linkinfo service/main.go + +FROM alpine + +MAINTAINER Tyler Stuyfzand + +EXPOSE 53 + +RUN apk --no-cache add tini +ENTRYPOINT ["/sbin/tini", "-g", "--"] +CMD ["linkinfo"] + +COPY --from=build-env /src/linkinfo /usr/local/bin/linkinfo +RUN chmod +x /usr/local/bin/linkinfo