Yes, you can deploy your webpage in a Docker container and then host it on a cloud service.
For Node.js file
FROM node:16 WORKDIR /app COPY . . RUN npm install CMD ["npm", "start"] EXPOSE 3000
Build the docker image
docker build -t my-webpage .
on Git Bash
Run
docker run -p 3000:3000 my-webpage
For deploying the container on a cloud service
AWS - Push the container to ECR. Deploy using ECS or a Docker-enabled EC2 instance.
Azure - Push the container to ACR. Deploy using Azure Kubernetes.
Google Cloud - Push the container image to GCR. Deploy on Cloud run.