KickerBot/Dockerfile

13 lines
243 B
Docker
Raw Permalink Normal View History

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
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"