Skip to content

Commit

Permalink
Merge pull request #17 from BlazeIsClone/develop
Browse files Browse the repository at this point in the history
refactor/add: docker image output, test entry for app
  • Loading branch information
BlazeIsClone authored Oct 1, 2024
2 parents a767c62 + a6f1dfc commit d3b5e96
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ go.work
.env

# Built binaries
./app
build


# Linters
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN make build

EXPOSE 3000

CMD ["./app"]
CMD ["./build"]
11 changes: 0 additions & 11 deletions Dockerfile.production

This file was deleted.

Binary file removed app
Binary file not shown.
9 changes: 9 additions & 0 deletions cmd/app/main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package main

import (
"testing"
)

func TestMain(t *testing.T) {
// Todo...
}
2 changes: 1 addition & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

go build -o app cmd/app/main.go
go build -o build cmd/app/main.go
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

go test cmd/app/main.go
go test cmd/app/main_test.go

0 comments on commit d3b5e96

Please sign in to comment.