govanityurls/Dockerfile
Marvin Steadfast 58908e29de
All checks were successful
continuous-integration/drone/push Build is passing
adds dockerfile
2021-01-18 10:10:15 +01:00

14 lines
242 B
Docker

FROM golang:alpine AS build
WORKDIR /go/src/app
COPY . .
RUN set -ex \
&& CGO_ENABLED=0 go install -a -ldflags '-w -s -extldflags "-static"'
FROM scratch
COPY --from=build /go/bin/govanityurls /govanityurls
ENTRYPOINT ["/govanityurls"]