matrix-vanity/Dockerfile

17 lines
251 B
Docker
Raw Permalink Normal View History

2023-11-25 00:47:25 +00:00
ARG ALPINE=3.18
FROM golang:1.21-alpine${ALPINE} AS build
WORKDIR /app
COPY go.mod go.sum .
RUN go mod download
ADD . /app
RUN go build
FROM alpine:${ALPINE}
WORKDIR /bin
COPY --from=build /app/matrix-vanity .
WORKDIR /
CMD ["/bin/matrix-vanity"]