Cập nhật Dockerfile.dev và loại bỏ file log tạm thời

- Nâng cấp Golang image lên phiên bản 1.23.3
- Thay đổi cài đặt Air từ air-verse sang phiên bản chính thức (cosmtrek/air@v1.49.0)
- Xóa file log tạm thời không cần thiết trong thư mục logs
- Tối giản hóa các lệnh RUN trong Dockerfile
This commit is contained in:
koh 2025-03-05 13:06:03 +07:00
parent db9e384c62
commit 5997a13172
No known key found for this signature in database
2 changed files with 4 additions and 8 deletions

View File

@ -1,12 +1,10 @@
FROM golang:1.23-alpine
FROM golang:1.23.3-alpine
WORKDIR /app
# Cài đặt các công cụ phát triển
RUN apk add --no-cache git make
# Cài đặt Air cho hot-reload
RUN go install github.com/air-verse/air@latest
# Install build dependencies and air
RUN apk add --no-cache git make && \
go install github.com/cosmtrek/air@v1.49.0
# Sao chép file go.mod và go.sum
COPY go.mod go.sum ./

View File

@ -1,2 +0,0 @@
{"level":"INFO","time":"2025-03-03T09:49:31.197Z","caller":"initialize/mysql.go:31","msg":"Initializing MySQL Successfully"}
{"level":"INFO","time":"2025-03-03T09:49:31.198Z","caller":"initialize/run.go:63","msg":"Server đang chạy trên cổng 8080"}