Marvin Steadfast
3ddacd542a
All checks were successful
continuous-integration/drone/push Build is passing
16 lines
255 B
Docker
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"]
|