fix: generate bad Dockerfile on given dir (#1980)

This commit is contained in:
Kevin Wan
2022-06-06 19:50:54 +08:00
committed by GitHub
parent 8be47b9c99
commit 4d34998338
3 changed files with 3 additions and 8 deletions

View File

@@ -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}}
{{end}}RUN go build -ldflags="-s -w" -o /app/{{.ExeFile}} {{.GoRelPath}}/{{.GoFile}}
FROM {{.BaseImage}}