turbo-docker-template Svelte Themes

Turbo Docker Template

Dockerfile template for turbo with Express and Svelte

Commands

# Install dependencies
pnpm install

# Create a network, which allows containers to communicate
# with each other, by using their container name as a hostname
docker network create app_network

# Build prod using new BuildKit engine
COMPOSE_DOCKER_CLI_BUILD=1 DOCKER_BUILDKIT=1 docker-compose -f docker-compose.yaml build

# Start prod in detached mode
docker-compose -f docker-compose.yaml up -d

docker-compose run --entrypoint sh api

docker-compose down --remove-orphans

docker container prune

Top categories

Loading Svelte Themes