{"id":23594025,"url":"https://github.com/magicink/twinejs-web-docker","last_synced_at":"2026-01-25T00:32:34.675Z","repository":{"id":223156504,"uuid":"759449417","full_name":"magicink/twinejs-web-docker","owner":"magicink","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-09T21:27:21.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-27T17:02:15.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magicink.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-02-18T16:18:52.000Z","updated_at":"2025-03-09T21:27:24.000Z","dependencies_parsed_at":"2025-03-06T02:32:22.273Z","dependency_job_id":"eb16fd02-b0a5-47db-8741-b3f68cbed0ed","html_url":"https://github.com/magicink/twinejs-web-docker","commit_stats":null,"previous_names":["magicink/twinejs-web-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/magicink/twinejs-web-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicink%2Ftwinejs-web-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicink%2Ftwinejs-web-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicink%2Ftwinejs-web-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicink%2Ftwinejs-web-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magicink","download_url":"https://codeload.github.com/magicink/twinejs-web-docker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magicink%2Ftwinejs-web-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28739874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T22:12:27.248Z","status":"ssl_error","status_checked_at":"2026-01-24T22:12:10.529Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-27T09:14:45.859Z","updated_at":"2026-01-25T00:32:34.669Z","avatar_url":"https://github.com/magicink.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TwineJS Docker Container\n\nThis Docker container automates the setup for running the latest web version of TwineJS, using `oven/bun:alpine` as the base image. It's designed to be lightweight and easy to deploy.\n\n## Features\n\n- **Lightweight**: Utilizes `oven/bun:alpine` for a minimal footprint.\n- **Automated Updates**: Fetches the latest TwineJS web version directly from GitHub releases.\n- **Simplicity**: Serves TwineJS using `http-server` on port 8080.\n\n## License\n\nThis project is licensed under the MIT License.\n\n## Prerequisites\n\nDocker must be installed on your system to use this container.\n\n## Building the Image\n\nTo construct the Docker image, execute the following command within the directory that houses the Dockerfile:\n\n```bash\ndocker build -t twinejs-docker .\n```\n\n## Running the Container\n\nLaunch the container with the command below:\n\n```bash\ndocker run -d -p 8080:8080 --name twinejs twinejs-docker\n```\n\nThis instruction initiates a container named `twinejs` exposed on port 8080. Access TwineJS by navigating to `http://localhost:8080` in your web browser.\n\n### Data Persistence\n\nThe container declares `/var/www` as a volume, ensuring that any data within, such as custom story formats or saved stories, persists across container restarts:\n\n```bash\ndocker run -d -p 8080:8080 \\\n  -v /path/to/local/www:/var/www \\\n  --name twinejs twinejs-docker\n```\n\nAdjust `/path/to/local/www` to the path of a directory on your host machine for data persistence.\n\n## Customization\n\nFor custom server settings or port adjustments, modify the `ENTRYPOINT` directive in the Dockerfile or override the default command when starting the container. For instance, to change the server port to 9090:\n\n```bash\ndocker run -d -p 9090:8080 twinejs-docker http-server -p 8080\n```\n\n## Additional Information\n\nFor further details on TwineJS, please visit the [official TwineJS GitHub repository](https://github.com/klembot/twinejs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicink%2Ftwinejs-web-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagicink%2Ftwinejs-web-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagicink%2Ftwinejs-web-docker/lists"}