govanityurls/Dockerfile

16 lines
255 B
Docker
Raw Normal View History

2021-01-18 10:06:39 +01:00
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
2021-01-19 10:21:59 +01:00
EXPOSE 8080
2021-01-18 10:06:39 +01:00
ENTRYPOINT ["/govanityurls"]