Skip to content

Commit

Permalink
Updates docker to use custom config path
Browse files Browse the repository at this point in the history
  • Loading branch information
nkcr committed Jul 13, 2022
1 parent df01141 commit 283e4f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# docker build -t hodor .
# docker run -p 3333:3333 -v $(pwd)/data:/data -v $(pwd)/config.json:/config.json hodor
FROM alpine:3.14
ENV CONFIG_PATH "/config.json"
COPY --chmod=0755 ./hodor-linux-amd64 /hodor
ENTRYPOINT ["/hodor", "--dbfilepath", "/data/hodor.db", "--config", \
"/config.json", "--listen", "0.0.0.0:3333"]
ENTRYPOINT /hodor --dbfilepath /data/hodor.db --config ${CONFIG_PATH} --listen 0.0.0.0:3333

0 comments on commit 283e4f0

Please sign in to comment.