We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13eca40 commit c829eb3Copy full SHA for c829eb3
Dockerfile
@@ -7,5 +7,5 @@ RUN go install github.com/swaggo/swag/cmd/swag@latest
7
COPY . /app
8
RUN swag init --dir cmd/server/
9
EXPOSE 8001
10
-RUN CGO_ENABLED=1 go build -o ./bin/server cmd/server/main.go
+RUN CGO_ENABLED=1 go build -o bin/server cmd/server/main.go
11
CMD ./bin/server
Makefile
@@ -1,6 +1,7 @@
1
setup:
2
go install github.com/swaggo/swag/cmd/swag@latest
3
- swag init
+ swag init --dir cmd/server/
4
+ go build -o bin/server cmd/server/main.go
5
6
build:
docker compose build --no-cache
bin/server
-1.94 KB
0 commit comments