chore: refine docker for better compatible with package main (#1944)
* chore: refine docker for better compatible with package main * chore: default to current dir on goctl docker command
This commit is contained in:
@@ -15,7 +15,7 @@ ADD go.sum .
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
{{if .Argument}}COPY {{.GoRelPath}}/etc /app/etc
|
||||
{{end}}RUN go build -ldflags="-s -w" -o /app/{{.ExeFile}} {{.GoRelPath}}/{{.GoFile}}
|
||||
{{end}}RUN go build -ldflags="-s -w" -o /app/{{.ExeFile}} {{.GoRelPath}}
|
||||
|
||||
|
||||
FROM {{.BaseImage}}
|
||||
|
||||
Reference in New Issue
Block a user