linkinfo/Dockerfile

19 lines
409 B
Docker
Raw Normal View History

2019-10-06 19:08:59 +00:00
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>
2019-10-06 19:14:01 +00:00
EXPOSE 8080
2019-10-06 19:08:59 +00:00
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