-
Notifications
You must be signed in to change notification settings - Fork 131
Open
Description
Description:
LiteSVM currently does not support Windows natively. I’ve created a Docker-based workaround that allows Windows users to run LiteSVM without setting up a Linux environment. This setup includes both a Dockerfile and a Docker Compose YAML for flexibility.
How it works:
- The Dockerfile builds an image with LiteSVM installed.
- The Docker Compose file defines a service running LiteSVM and allows mounting a folder from the Windows host.
- Users can place their files in the mounted folder and the container will process them.
Example usage:
dockerfile:
# dockerfile
FROM node:20-alpine
# Optional: tools you may want (git, bash). 'sh' is already available.
RUN apk add --no-cache bash
WORKDIR /workspace
# default interactive shell
CMD ["sh"]
docker-compose.yml:
services:
node-test:
build: .
working_dir: /workspace
volumes:
- ./client:/workspace:delegated # or '.' if your app root is repo root
- client_node_modules:/workspace/node_modules
tty: true
stdin_open: true
# NOTE: use sh, not bash, on Alpine unless you installed bash
command: sh -c "if [ -f package-lock.json ]; then npm ci --include=dev; else npm install --include=dev; fi; tail -f /dev/null"
volumes:
client_node_modules:
Benefits:
- Enables Windows users to run LiteSVM without Linux.
- Provides a simple, containerized workflow for file processing.
- Could serve as a starting point for official cross-platform support.
Optional:
Feedback or suggestions on integrating this officially would be greatly appreciated. I’m also happy to refine or adjust the Dockerfile and Docker Compose setup if maintainers are open to including it in the main repository.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels