17 lines
251 B
Docker
17 lines
251 B
Docker
|
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"]
|