diff --git a/.gitignore b/.gitignore index faeda40..2752958 100644 --- a/.gitignore +++ b/.gitignore @@ -24,7 +24,7 @@ go.work .env # Built binaries -./app +build # Linters diff --git a/Dockerfile b/Dockerfile index 22ca3b3..5b01234 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ RUN make build EXPOSE 3000 -CMD ["./app"] \ No newline at end of file +CMD ["./build"] \ No newline at end of file diff --git a/Dockerfile.production b/Dockerfile.production deleted file mode 100644 index 22ca3b3..0000000 --- a/Dockerfile.production +++ /dev/null @@ -1,11 +0,0 @@ -FROM golang:1.22.1 - -WORKDIR /app - -ADD . . - -RUN make build - -EXPOSE 3000 - -CMD ["./app"] \ No newline at end of file diff --git a/app b/app deleted file mode 100755 index 4c8cb1f..0000000 Binary files a/app and /dev/null differ diff --git a/cmd/app/main_test.go b/cmd/app/main_test.go new file mode 100644 index 0000000..346ecc4 --- /dev/null +++ b/cmd/app/main_test.go @@ -0,0 +1,9 @@ +package main + +import ( + "testing" +) + +func TestMain(t *testing.T) { + // Todo... +} diff --git a/scripts/build.sh b/scripts/build.sh index af0abbe..42426b7 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -1,3 +1,3 @@ #!/bin/bash -go build -o app cmd/app/main.go \ No newline at end of file +go build -o build cmd/app/main.go \ No newline at end of file diff --git a/scripts/test.sh b/scripts/test.sh index ca3c8ee..e9f0891 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -1,3 +1,3 @@ #!/bin/bash -go test cmd/app/main.go \ No newline at end of file +go test cmd/app/main_test.go \ No newline at end of file