feat: Add docker
This commit is contained in:
parent
b6baf89147
commit
6746c35672
2 changed files with 25 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal 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
8
compose.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
services:
|
||||||
|
discordbot:
|
||||||
|
container_name: "goMuffin"
|
||||||
|
build: "."
|
||||||
|
env_file:
|
||||||
|
- "./.env"
|
||||||
|
volumes:
|
||||||
|
- "/etc/localtime:/etc/localtime"
|
Loading…
Reference in a new issue