Skip to content

Commit c829eb3

Browse files
committed
fix: dockerfile and setup
1 parent 13eca40 commit c829eb3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ RUN go install github.com/swaggo/swag/cmd/swag@latest
77
COPY . /app
88
RUN swag init --dir cmd/server/
99
EXPOSE 8001
10-
RUN CGO_ENABLED=1 go build -o ./bin/server cmd/server/main.go
10+
RUN CGO_ENABLED=1 go build -o bin/server cmd/server/main.go
1111
CMD ./bin/server

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
setup:
22
go install github.com/swaggo/swag/cmd/swag@latest
3-
swag init
3+
swag init --dir cmd/server/
4+
go build -o bin/server cmd/server/main.go
45

56
build:
67
docker compose build --no-cache

bin/server

-1.94 KB
Binary file not shown.

0 commit comments

Comments
 (0)