Skip to content

Commit

Permalink
build(makefile): add couple of commands to build and run the container
Browse files Browse the repository at this point in the history
  • Loading branch information
danvergara committed Dec 29, 2023
1 parent 6059f26 commit e3d4dad
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
HTMX_VERSION=1.9.6
BOOTSTRAP_VERSION=5.3.2
GO_VERSION=1.21.5

.PHONY: run
## run: Runs the air command.
Expand All @@ -17,15 +18,15 @@ download-bootstrap:
curl -o static/bootstrap.min.css https://cdn.jsdelivr.net/npm/bootstrap@${BOOTSTRAP_VERSION}/dist/css/bootstrap.min.css
curl -o static/bootstrap.min.js https://cdn.jsdelivr.net/npm/bootstrap@${BOOTSTRAP_VERSION}/dist/js/bootstrap.bundle.min.js

.PHONY: build
## build: Builds the container image
build:
docker build -t morphos .
.PHONY: docker-build
## docker-build: Builds the container image
docker-build:
docker build --build-arg="GO_VERSION=${GO_VERSION}" -t morphos .

.PHONY: docker-run
## docker-run: Runs the container
docker-run:
docker run -d -p 8080:8080 -v /tmp:/tmp morphos
docker run --rm -p 8080:8080 -v /tmp:/tmp morphos

.PHONY: help
## help: Prints this help message
Expand Down

0 comments on commit e3d4dad

Please sign in to comment.