Skip to content

fcrozatier/kit_docker

Repository files navigation

How to Dockerize a sveltekit app?

This is a demo project to help you dockerize your sveltekit app

How to use it?

npm install
docker build --tag sveltekit-test .
docker-compose up

Then open http://localhost:5173/

Verify your .dockerignore and build context

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published