This repository has been archived on 2021-05-09. You can view files and clone it, but cannot push or open issues or pull requests.
vanity/docker/Dockerfile
John Olheiser 2f688b839b Update docker for Go 1.16 (#9)
Co-authored-by: jolheiser <john.olheiser@gmail.com>
Reviewed-on: #9
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-committed-by: John Olheiser <john.olheiser@gmail.com>
2021-02-22 04:28:35 +08:00

12 lines
250 B
Docker

FROM golang:1.16-alpine as builder
RUN apk --no-cache add build-base git
COPY . /app
WORKDIR /app
RUN make build
FROM alpine:latest
LABEL maintainer="john.olheiser@gmail.com"
COPY --from=builder /app/vanity vanity
EXPOSE 7777
ENTRYPOINT ["/vanity"]