Skip to content

Commit 94bfdb8

Browse files
committed
add instructions how to install
1 parent 14cc6a8 commit 94bfdb8

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

readme.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ flag | description | default
2222
`--enableFileNotFound` | enable file-not-found error | `true`
2323
`--fileNotFoundFile` | set custom file-not-found file | `404.html`
2424

25-
# docker
26-
- sample [Dockerfile](./sysadmin/Dockerfile)
27-
```bash
28-
docker build -f sysadmin/Dockerfile -t simple-http-fileserver .
29-
docker run --rm -p 64080:64080 -v /path/to/your/folder:/var/www:ro simple-http-fileserver
25+
# install from releases
26+
```sh
27+
# linux amd64 version
28+
sudo bash -c 'VERSION=2026.04.11; ARCH=aarch64; curl -L -o /usr/local/bin/simple-http-fileserver "https://github.com/codemodify/simple-http-fileserver/releases/download/${VERSION}/simple-http-fileserver_linux-${ARCH}"'
29+
30+
sudo chmod +x /usr/local/bin/simple-http-fileserver
31+
32+
/usr/local/bin/simple-http-fileserver -version
3033
```
34+
3135
# systemd
3236
- sample [simple-http-fileserver.service](./sysadmin/simple-http-fileserver.service)
3337
```bash
@@ -36,6 +40,13 @@ sudo systemctl daemon-reload
3640
sudo systemctl enable --now simple-http-fileserver
3741
```
3842

43+
# docker
44+
- sample [Dockerfile](./sysadmin/Dockerfile)
45+
```bash
46+
docker build -f sysadmin/Dockerfile -t simple-http-fileserver .
47+
docker run --rm -p 64080:64080 -v /path/to/your/folder:/var/www:ro simple-http-fileserver
48+
```
49+
3950
# design considerations
4051
- has to be dead simple to use and configure
4152

0 commit comments

Comments
 (0)