Add docker image building
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -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
|
Reference in New Issue
Block a user