This project is a Spring Boot application. The repository includes a multi-stage Dockerfile that builds the app with Maven and produces a runtime image. A docker-compose.yml is provided to run the service together with a MySQL database.
# Build Docker image
docker build -t im-app:latest .
# Run the Docker image
docker run --rm -p 8082:8082 \
-e SPRING_DATASOURCE_URL='jdbc:mysql://<host>:3306/inventory_db?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC' \
-e SPRING_DATASOURCE_USERNAME=root \
-e SPRING_DATASOURCE_PASSWORD=Anjana@3176 \
im-app:latest
# Start using Docker Compose
docker compose up --build
# Stop Docker Compose
docker compose down
# View logs
docker compose logs -f