I'd like to understand why is $X$ is $CW$ complex $i : X^{n} \hookrightarrow X$ is a cofibration when the dimension of $X$ is not finite. The proof I'd like to generalize:
I'm going to use $\bigsqcup \mathbb{S}_{\lambda}^n \hookrightarrow \bigsqcup \mathbb{D}_{\lambda}^n$ that is a cofibration. Then using that the following is a pushout diagram and the cofibration $\bigsqcup \mathbb{S}_{\lambda}^n \hookrightarrow \bigsqcup \mathbb{D}_{\lambda}^n$
$$\begin{array}{ccccccccc} \bigsqcup \mathbb{S}_{\lambda}^n & \overset{}{\hookrightarrow} &\bigsqcup\mathbb{D}_{\lambda}^n\\\ \downarrow{} & & \downarrow{} & \\\ X^{n-1} & \overset{}{\rightarrow} & X^{n} \end{array}$$
we have that $X^n \hookrightarrow X^{m}$ is a cofibration whenever $n \geq m$, which concludes the proof if $X$ has finite dimension.
I'd like to extend this "process" to the following diagram
$$\begin{array}{ccccccccc} \bigsqcup \mathbb{S}_{\lambda}^n & \overset{}{\hookrightarrow} &\bigsqcup\mathbb{D}_{\lambda}^n\\\ \downarrow{} & & \downarrow{} & \\\ X^{n-1} & \overset{}{\rightarrow} & X \end{array}$$
But I don't whether the same argument could be applied, since if has no finite dimension it's defined as a colimit. There's a direct generalization of this proof?
Any help or reference would be appreciated.