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:
parent
db9e384c62
commit
5997a13172
@ -1,12 +1,10 @@
|
|||||||
FROM golang:1.23-alpine
|
FROM golang:1.23.3-alpine
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Cài đặt các công cụ phát triển
|
# Install build dependencies and air
|
||||||
RUN apk add --no-cache git make
|
RUN apk add --no-cache git make && \
|
||||||
|
go install github.com/cosmtrek/air@v1.49.0
|
||||||
# Cài đặt Air cho hot-reload
|
|
||||||
RUN go install github.com/air-verse/air@latest
|
|
||||||
|
|
||||||
# Sao chép file go.mod và go.sum
|
# Sao chép file go.mod và go.sum
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
@ -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"}
|
|
Loading…
x
Reference in New Issue
Block a user