mirror of
https://github.com/halverneus/static-file-server.git
synced 2024-11-24 09:05:30 +00:00
Fixed README formatting.
This commit is contained in:
parent
26bd3affa2
commit
fe918d4ad1
@ -47,9 +47,9 @@ PORT=8888 FOLDER=. ./serve
|
|||||||
Files can then be accessed by going to http://localhost:8888/my/file.txt
|
Files can then be accessed by going to http://localhost:8888/my/file.txt
|
||||||
|
|
||||||
### With Docker
|
### With Docker
|
||||||
```
|
|
||||||
docker run -d -v /my/folder:/web -p 8080:8080 halverneus/static-file-server:latest
|
|
||||||
```bash
|
```bash
|
||||||
|
docker run -d -v /my/folder:/web -p 8080:8080 halverneus/static-file-server:latest
|
||||||
|
```
|
||||||
This will serve the folder "/my/folder" over http://localhost:8080/my/file.txt
|
This will serve the folder "/my/folder" over http://localhost:8080/my/file.txt
|
||||||
|
|
||||||
Any of the variables can also be modified:
|
Any of the variables can also be modified:
|
||||||
|
Loading…
Reference in New Issue
Block a user