This is an enhanced version of of the original skeleton project from sveltekit To get the original skeleton from sveltekit run the following command:
npm create svelte@latest my-app
Or you can simply follow the instructions in the SvelteKit docs
Besides the skeleton default this includes the basic .gitignore, Dockerfile and .dockerignore files for the Docker process.
Also we are using the adapter-node instead of the default adapter-auto
npm run dev
or for a local production preview
npm run build
npm run preview
First create the image from the root directory:
docker build -t <imagename> .
After the image is built, run it:
docker run -d -p 4173:4173 <imagename>
Go to your browser and access application should be mounted at 0.0.0.0:4173