skelton dockerized sveltekit JS HMR dev and build multi adapter for node server and static build SSG
This article provides a guide on using Docker for development and production of SvelteKit applications. It offers instructions for both Javascript and Typescript setups, and covers the steps for building Docker images and running containers in development and production modes.
To install the theme, follow these steps:
docker build -t [image-name] .
docker pull [image-name]
docker run -p [host-port]:[docker-port] [image-name]
Make sure to replace [host-port] with the desired port on your host machine and [docker-port] with the corresponding port inside the Docker container.
docker stop [container-name]
docker rm [container-name]
Note: Be aware of the port mapping rules, where the left side represents the port on your host machine and the right side represents the port inside the Docker container. Default ports are used for Docker, but you can configure them by modifying the relevant lines in the package.json file.
This article provides a detailed guide on using Docker for development and production of SvelteKit applications. It explains the steps involved in building Docker images, running Docker containers, and configuring ports. Whether you prefer Javascript or Typescript, this guide covers the necessary steps to set up your SvelteKit project using Docker.