29 lines
504 B
Makefile
29 lines
504 B
Makefile
.PHONY: build run test clean lint docker-build docker-run
|
|
|
|
# Build the application
|
|
build:
|
|
go build -o bin/dicom-proxy cmd/server/main.go
|
|
|
|
# Run the application
|
|
run:
|
|
go run cmd/server/main.go
|
|
|
|
# Test the application
|
|
test:
|
|
go test -v ./...
|
|
|
|
# Clean build artifacts
|
|
clean:
|
|
rm -rf bin/
|
|
|
|
# Lint the code
|
|
lint:
|
|
golangci-lint run
|
|
|
|
# Build Docker image
|
|
docker-build:
|
|
docker build -t dicom-proxy .
|
|
|
|
# Run Docker container
|
|
docker-run:
|
|
docker run -p 8080:8080 --env-file .env dicom-proxy
|