Add docker image building
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
8635ba4cac
commit
ba04e15a2b
11
.drone.yml
11
.drone.yml
|
@ -12,3 +12,14 @@ steps:
|
|||
from_secret: imgur_client_id
|
||||
YOUTUBE_KEY:
|
||||
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
|
||||
|
|
|
@ -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 <tyler@tystuyfzand.com>
|
||||
|
||||
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
|
Loading…
Reference in New Issue