Skip to content

Commit 037fef1

Browse files
committed
chore: move main.go to cmd folder
1 parent 9237750 commit 037fef1

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dev-down:
77
docker-compose --file ./build/docker-compose.yml down --rmi all -v
88

99
run:
10-
CGO_ENABLED=0 go build -ldflags='-w -s' -o app ./main.go && HTTP_ADDR=:8080 ./app
10+
CGO_ENABLED=0 go build -ldflags='-w -s' -o app ./cmd/xlsx-builder/main.go && HTTP_ADDR=:8080 ./app
1111

1212
test:
1313
go test -v -shuffle=on -count=2 -short -cover ./...

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ COPY . .
2121
# Build the static binary
2222
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \
2323
-ldflags='-w -s -extldflags "-static"' -a \
24-
-o app .
24+
-o app ./cmd/xlsx-builder
2525

2626
############################
2727
# STEP 2 build a small image
File renamed without changes.

0 commit comments

Comments
 (0)