All checks were successful
continuous-integration/drone/push Build is passing
- Add Dockerfile for containerized deployment - Add .drone.yml for CI/CD pipeline configuration - Add docker and docker-run targets to Makefile - Configure port 8080 binding and persistent volume mount
27 lines
469 B
Makefile
27 lines
469 B
Makefile
.PHONY: all frontend backend clean dev docker docker-run tests
|
|
|
|
all: frontend backend
|
|
|
|
frontend:
|
|
cd frontend && bun run build
|
|
|
|
backend:
|
|
cd backend && go build -o ./dist/aethera ./cmd
|
|
|
|
clean:
|
|
rm -rf frontend/public/dist
|
|
rm -rf backend/dist
|
|
|
|
dev:
|
|
cd backend && go run ./cmd --listen 0.0.0.0 &
|
|
cd frontend && bun run dev
|
|
|
|
docker:
|
|
docker build -t aethera .
|
|
|
|
docker-run:
|
|
docker run -p 8080:8080 -v aethera-data:/app/data aethera
|
|
|
|
tests:
|
|
cd backend && go test ./...
|