Skip to content

Commit

Permalink
docker run local
Browse files Browse the repository at this point in the history
  • Loading branch information
kubegu committed Feb 29, 2024
1 parent b8b7f5e commit 0d25d6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ WORKDIR /app
COPY --from=build /app/web .
RUN chmod +x web
CMD ["./web"]
EXPOSE 3000
EXPOSE 8080
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ build-web:
go test ./...
go build -o bin/web main.go

docker:
docker build -t gunni1/lib-api:local .

build-cli:
go build ./...
go build -o bin/cli cmd/cli/main.go

docker:
docker build -t gunni1/lib-api:local .

docker-run:
docker run -p 8080:8080 --rm --name lib-api gunni1/lib-api:local



0 comments on commit 0d25d6f

Please sign in to comment.