Skip to content

Windows Support Workaround for LiteSVM Using Docker & Docker Compose #215

@ashhugoel

Description

@ashhugoel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions