From 6746c35672b207a02e9a3f8eaf44b9a0bcda27eb Mon Sep 17 00:00:00 2001 From: Siwoo Jeon Date: Sat, 29 Mar 2025 23:21:51 +0900 Subject: [PATCH] feat: Add docker --- Dockerfile | 17 +++++++++++++++++ compose.yml | 8 ++++++++ 2 files changed, 25 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fc0f8a7 --- /dev/null +++ b/Dockerfile @@ -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" ] \ No newline at end of file diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..45aaf66 --- /dev/null +++ b/compose.yml @@ -0,0 +1,8 @@ +services: + discordbot: + container_name: "goMuffin" + build: "." + env_file: + - "./.env" + volumes: + - "/etc/localtime:/etc/localtime" \ No newline at end of file