govanityurls/Dockerfile
Marvin Steadfast 3ddacd542a
All checks were successful
continuous-integration/drone/push Build is passing
adds EXPOSE to dockerfile
2021-01-19 10:21:59 +01:00

16 lines
255 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
EXPOSE 8080
ENTRYPOINT ["/govanityurls"]