This is a demo project to help you dockerize your sveltekit app
npm install
docker build --tag sveltekit-test .
docker-compose up
Then open http://localhost:5173/
To test what's in your current build context and verify your .dockerignore
file you can do the following (copy-paste in your cli):
# create an image that includes the entire build context
docker build -t test-context -f - . <<EOF
FROM busybox
COPY . /context
WORKDIR /context
CMD find .
EOF
# run the image which executes the find command
docker container run --rm test-context
# cleanup the built image
docker image rm test-context