mirror of
https://github.com/nicksherron/bashhub-server.git
synced 2024-12-27 01:33:05 +08:00
Docker image use database location in WORKDIR.
Passes `--db ./data.db` to entrypoint `bashhub-server` as default arguments to persist database files in docker volume /data.
This commit is contained in:
parent
23be9550f4
commit
54fa5fb65a
2 changed files with 3 additions and 2 deletions
|
@ -55,3 +55,4 @@ WORKDIR /data
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
ENTRYPOINT ["bashhub-server"]
|
ENTRYPOINT ["bashhub-server"]
|
||||||
|
CMD [ "--db", "./data.db"]
|
||||||
|
|
|
@ -81,7 +81,7 @@ $ bashhub-server
|
||||||
|
|
||||||
2020/02/10 03:04:11 Listening and serving HTTP on http://0.0.0.0:8080
|
2020/02/10 03:04:11 Listening and serving HTTP on http://0.0.0.0:8080
|
||||||
```
|
```
|
||||||
or on docker
|
or on docker (backend database files are persisted in container volume `/data`)
|
||||||
|
|
||||||
```
|
```
|
||||||
$ docker run -d -p 8080:8080 --name bashhub-server nicksherron/bashhub-server
|
$ docker run -d -p 8080:8080 --name bashhub-server nicksherron/bashhub-server
|
||||||
|
|
Loading…
Reference in a new issue