Compact microdisk cavities were fabricated on a polydimethylsiloxane substrate. The lasing of the flexible compact cavity was achieved with a low threshold power. The whispering-gallery mode of the microdisk was also characterized with three-dimensional finite-difference time-domain simulation. The curvature dependence in output power and threshold was also demonstrated by bending the microdisk cavity.