Skip to content

Commit 671645a

Browse files
committed
refac: edit dev files and Dockerfile
1 parent 06467ab commit 671645a

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ RUN go get -d -v
3232
# -w : Omit the DWARF symbol table.
3333
# -s : Omit the symbol table and debug information.
3434
# 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
3636
############################
3737
# STEP 2 build a small image
3838
############################

build.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ cd web
44
npm run build
55
cd ..
66

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
118

129

develop.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

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

0 commit comments

Comments
 (0)