diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Dockerfile | 2 | ||||
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | cmd/dbasik-api/datamaps.go (renamed from cmd/api/datamaps.go) | 0 | ||||
-rw-r--r-- | cmd/dbasik-api/errors.go (renamed from cmd/api/errors.go) | 0 | ||||
-rw-r--r-- | cmd/dbasik-api/healthcheck.go (renamed from cmd/api/healthcheck.go) | 0 | ||||
-rw-r--r-- | cmd/dbasik-api/helpers.go (renamed from cmd/api/helpers.go) | 0 | ||||
-rw-r--r-- | cmd/dbasik-api/main.go (renamed from cmd/api/main.go) | 0 | ||||
-rw-r--r-- | cmd/dbasik-api/routes.go (renamed from cmd/api/routes.go) | 0 |
9 files changed, 7 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e660fd9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin/ @@ -5,6 +5,6 @@ WORKDIR /app COPY go.mod ./ RUN go mod download && go mod verify COPY . . -RUN go build -v -o /usr/local/bin/app ./cmd/api +RUN go build -v -o /usr/local/bin/app ./cmd/dbasik-api CMD ["app"] EXPOSE 4000 @@ -0,0 +1,5 @@ +build: + @docker build -t dbasik:latest . + +run: + @docker run -it --rm -p 4000:4000 dbasik:latest diff --git a/cmd/api/datamaps.go b/cmd/dbasik-api/datamaps.go index 8d371ab..8d371ab 100644 --- a/cmd/api/datamaps.go +++ b/cmd/dbasik-api/datamaps.go diff --git a/cmd/api/errors.go b/cmd/dbasik-api/errors.go index 5f5122a..5f5122a 100644 --- a/cmd/api/errors.go +++ b/cmd/dbasik-api/errors.go diff --git a/cmd/api/healthcheck.go b/cmd/dbasik-api/healthcheck.go index 3378c6e..3378c6e 100644 --- a/cmd/api/healthcheck.go +++ b/cmd/dbasik-api/healthcheck.go diff --git a/cmd/api/helpers.go b/cmd/dbasik-api/helpers.go index 3b07dc2..3b07dc2 100644 --- a/cmd/api/helpers.go +++ b/cmd/dbasik-api/helpers.go diff --git a/cmd/api/main.go b/cmd/dbasik-api/main.go index fc03d33..fc03d33 100644 --- a/cmd/api/main.go +++ b/cmd/dbasik-api/main.go diff --git a/cmd/api/routes.go b/cmd/dbasik-api/routes.go index f884855..f884855 100644 --- a/cmd/api/routes.go +++ b/cmd/dbasik-api/routes.go |