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