Skip to content

Commit

Permalink
version
Browse files Browse the repository at this point in the history
  • Loading branch information
GirardinClaire committed Mar 13, 2024
1 parent ed1f029 commit bf9e27b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

FROM gcr.io/distroless/static-debian12
COPY dist/server /app/server
ENTRYPOINT ["/app/server"]
15 changes: 7 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
IMAGE?=girardinclaire/vehicle-server
TAG?=dev
DB_CONTAINER_NAME=vehicle-server-devgo
POSTGRES_USER=vehicle-server
POSTGRES_PASSWORD=secret
POSTGRES_DB=vehicle-server
DATABASE_URL=postgres://$(POSTGRES_USER):$(POSTGRES_PASSWORD)@localhost:5432/$(POSTGRES_DB)


.PHONY: all
all: clean unit_test integration_test dist build package
all: clean dist unit_test integration_test build package

.PHONY: clean
clean:
Expand All @@ -29,13 +35,6 @@ integration_test:
package:
docker build -t $(IMAGE):$(TAG) .


DB_CONTAINER_NAME=vehicle-server-devgo
POSTGRES_USER=vehicle-server
POSTGRES_PASSWORD=secret
POSTGRES_DB=vehicle-server
DATABASE_URL=postgres://$(POSTGRES_USER):$(POSTGRES_PASSWORD)@localhost:5432/$(POSTGRES_DB)

.PHONY: dev
dev: dev_db
go run ./cmd/server \
Expand Down

0 comments on commit bf9e27b

Please sign in to comment.