2022-11-09 02:02:12 +03:00
|
|
|
FROM golang:1.19.3-alpine AS build
|
2021-12-03 12:19:55 +03:00
|
|
|
WORKDIR /src
|
2022-02-02 13:11:53 +03:00
|
|
|
COPY ./go.mod go.mod
|
|
|
|
COPY ./go.sum go.sum
|
|
|
|
RUN go mod download
|
2021-12-03 12:19:55 +03:00
|
|
|
COPY . .
|
|
|
|
RUN go build -o /out/kicker
|
|
|
|
|
2021-12-07 01:18:44 +03:00
|
|
|
FROM alpine:3.14 AS bin
|
2022-02-02 00:58:56 +03:00
|
|
|
COPY ./assets /assets
|
2021-12-07 01:18:44 +03:00
|
|
|
COPY --from=build /out/kicker /
|
2022-11-09 02:02:12 +03:00
|
|
|
CMD "/kicker"
|