💾 Archived View for source.community › Fuwn › space › raw › main › Makefile captured on 2023-06-14 at 14:20:08.

View Raw

More Information

⬅️ Previous capture (2022-03-01)

-=-=-=-=-=-=-

fmt:
	go fmt github.com/fuwn/space...

run: fmt validate
	go run github.com/fuwn/space

build: fmt
	go build

validate: .space/.certificates/space.crt .space/.certificates/space.key

ssl:
	mkdir -p .space/.certificates
	openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes \
	  -out .space/.certificates/space.crt \
	  -keyout .space/.certificates/space.key \
	  -subj "/CN=fuwn.me"

docker: fmt
	docker build -t fuwn/space:latest .

# https://stackoverflow.com/a/49022012
dangling:
	sudo docker rmi $(sudo docker images -f "dangling=true" -q) --force