Skip to content

Commit

Permalink
Merge pull request #16 from blackhogz/master
Browse files Browse the repository at this point in the history
Docker image use database location in WORKDIR /data.
  • Loading branch information
nicksherron authored May 31, 2020
2 parents a423ac3 + 54fa5fb commit 0293159
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ WORKDIR /data
# Expose port for live server
EXPOSE 8080

ENTRYPOINT ["bashhub-server"]
ENTRYPOINT ["bashhub-server"]
CMD [ "--db", "./data.db"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ $ bashhub-server
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
Expand Down

0 comments on commit 0293159

Please sign in to comment.