Based on phase-field theory, we develop a lattice Boltzmann (LB) model for liquid-gas-solid flow from multiphase and particle dynamics algorithms. A modified bounce-back method is developed for the velocity-based LB approach. A curved boundary treatment with second-order accuracy based on velocity interpolation is developed. We propose a predictor-corrector scheme algorithm for specifying the three-phase contact angle on curved boundaries within the framework of structured Cartesian grids. In order to make the algorithm more stable, we combine the implicit particle velocity update scheme and the Galilean invariant momentum exchange method. The proposed method is validated through several single- and multicomponent fluid test cases. It was found the surface tension force associated with the interface acting on the solid structures can be captured. We simulate the sinking of a circular cylinder due to gravity, the numerical results agree well with the experimental data. Finally, we apply the method to the self-assembly process of multiple floating cylinders on water surface.