Skip to content

Commit

Permalink
feat(docker): added Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Oct 29, 2023
1 parent 9978358 commit 807a262
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/wittano/komputer

go 1.19
go 1.20

require (
github.com/bwmarrin/discordgo v0.27.1
Expand Down

0 comments on commit 807a262

Please sign in to comment.