From 807a262ae2b6e21a01205bd334b2c4d1573a42aa Mon Sep 17 00:00:00 2001 From: Wittano Date: Sun, 29 Oct 2023 14:06:16 +0100 Subject: [PATCH] feat(docker): added Dockerfile --- Dockerfile | 21 +++++++++++++++++++++ go.mod | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..58c87ac --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM golang:1.20-alpine AS builder + +WORKDIR /builder + +COPY . /builder + +RUN apk add make + +RUN make build + +FROM golang:1.20-alpine + +WORKDIR /app + +RUN apk add ffmpeg + +COPY --from=builder /builder/build/komputer . + +COPY assets /app/assets + +CMD [ "/app/komputer" ] \ No newline at end of file diff --git a/go.mod b/go.mod index 2f9de4b..4dec4b0 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/wittano/komputer -go 1.19 +go 1.20 require ( github.com/bwmarrin/discordgo v0.27.1