File tree 3 files changed +3
-6
lines changed
3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ RUN go get -d -v
32
32
# -w : Omit the DWARF symbol table.
33
33
# -s : Omit the symbol table and debug information.
34
34
# Omit the symbol table and debug information will reduce the binary size.
35
- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o zinc
35
+ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o zinc cmd/zinc/main.go
36
36
# ###########################
37
37
# STEP 2 build a small image
38
38
# ###########################
Original file line number Diff line number Diff line change 4
4
npm run build
5
5
cd ..
6
6
7
- go install github.com/rakyll/statik@latest
8
- statik -src=./web/dist
9
-
10
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags=" -w -s" -o zinc
7
+ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags=" -w -s" -o zinc cmd/zinc/main.go
11
8
12
9
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- reflex -d none -s -R vendor. -r \. go$ -- go run main.go
3
+ reflex -d none -s -R vendor. -r \. go$ -- go run cmd/zinc/ main.go
You can’t perform that action at this time.
0 commit comments