chore: Fixing dockerfile
This commit is contained in:
parent
e3e4b372d0
commit
e7b653eaa7
4 changed files with 13 additions and 15 deletions
10
.dockerignore
Normal file
10
.dockerignore
Normal file
|
@ -0,0 +1,10 @@
|
|||
.git/
|
||||
.vscode/
|
||||
.env*
|
||||
.gitignore
|
||||
.dockerignore
|
||||
README.md
|
||||
update.sh
|
||||
compose.yml
|
||||
Dockerfile
|
||||
script/
|
10
Dockerfile
10
Dockerfile
|
@ -3,15 +3,7 @@ FROM golang:1.24.1
|
|||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
|
||||
COPY ./commands .
|
||||
COPY ./configs .
|
||||
COPY ./databases .
|
||||
COPY ./handler .
|
||||
COPY ./utils .
|
||||
COPY ./components .
|
||||
COPY go.mod .
|
||||
COPY go.sum .
|
||||
COPY main.go .
|
||||
COPY . .
|
||||
|
||||
RUN go build -o build/goMuffin git.wh64.net/muffin/goMuffin
|
||||
|
||||
|
|
|
@ -27,11 +27,7 @@ type MuffinConfig struct {
|
|||
}
|
||||
|
||||
func loadConfig() *MuffinConfig {
|
||||
err := godotenv.Load()
|
||||
if err != nil {
|
||||
log.Println("[goMuffin] 봇의 설절파일을 불러올 수가 없어요.")
|
||||
log.Fatalln(err)
|
||||
}
|
||||
godotenv.Load()
|
||||
config := &MuffinConfig{Bot: botConfig{}, Train: trainConfig{}}
|
||||
setConfig(config)
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/sh
|
||||
#!/bin/sh
|
||||
sudo docker compose stop
|
||||
sudo docker compose rm -s -f
|
||||
sudo docker compose build
|
||||
|
|
Loading…
Reference in a new issue