feat: Add docker

This commit is contained in:
Siwoo Jeon 2025-03-29 23:21:51 +09:00
parent b6baf89147
commit 6746c35672
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA
2 changed files with 25 additions and 0 deletions

17
Dockerfile Normal file
View file

@ -0,0 +1,17 @@
FROM golang:1.24.1
RUN mkdir /app
WORKDIR /app
COPY ./commands .
COPY ./configs .
COPY ./databases .
COPY ./handlers .
COPY ./utils .
COPY go.mod .
COPY go.sum .
COPY main.go .
RUN go build -o build/goMuffin git.wh64.net/muffin/goMuffin
ENTRYPOINT [ "./build/goMuffin" ]

8
compose.yml Normal file
View file

@ -0,0 +1,8 @@
services:
discordbot:
container_name: "goMuffin"
build: "."
env_file:
- "./.env"
volumes:
- "/etc/localtime:/etc/localtime"