Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kwaa/dkit
🐋 Simple pnpm image optimized for SvelteKit project.
https://github.com/kwaa/dkit
docker docker-image pnpm sveltekit
Last synced: 11 days ago
JSON representation
🐋 Simple pnpm image optimized for SvelteKit project.
- Host: GitHub
- URL: https://github.com/kwaa/dkit
- Owner: kwaa
- License: wtfpl
- Created: 2022-03-09T08:21:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-08T05:28:23.000Z (over 2 years ago)
- Last Synced: 2024-10-08T11:05:55.350Z (30 days ago)
- Topics: docker, docker-image, pnpm, sveltekit
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/kwaabot/dkit
- Size: 11.7 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# DKit
🐋 Simple pnpm image optimized for SvelteKit project.
## Pull
```bash
docker pull kwaabot/dkit # DockerHubdocker pull ghcr.io/kwaa/dkit # GitHub Container Registry
```## Example
use [importantimport/urara](https://github.com/importantimport/urara), build with adapter-node, serve at 0.0.0.0:3000
> `ADAPTER=node` required by Urara
```bash
docker run -dt --rm --name dkit \
-e ADAPTER=node \
-e REPO=importantimport/urara \
-e SERVE=true \
--network=host \
kwaabot/dkit build
```local repository at `/home/user/repo`, pnpm-store already exists, skip installation step, start the development server with port 8080
> Currently unavailable due to store-dir setting failed
```bash
docker run -dt --rm --name dkit \
-e INSTALL=false \
-v /home/user/repo:/usr/src/app \
-v /var/cache/pnpm-store:/var/cache/pnpm-store \
--network=host \
kwaabot/dkit dev --port 8080
```## Environment Variables
### STORE ('/var/cache/pnpm-store')
pnpm-store folder location.
### HOME ('/usr/src/app')
repository folder location.
### REPO ('user/repo')
set to another value to use degit to download the repository.
### INSTALL (true)
set to false to skip the installation step.
### SERVE (false)
set to true to start the server generated by adapter-
when using this feature, you should ensure that the OUT directory is configured correctly and that the index.js file is correctly generated.### OUT ('build')
adapter-node output folder name, only used when SERVE=true.
## License
This work is free, it comes without any warranty. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See the [COPYING](https://github.com/kwaa/dkit/blob/main/COPYING) file for more details.