nostr-rs-relay

My dev fork of nostr-rs-relay
git clone git://jb55.com/nostr-rs-relay
Log | Files | Refs | README | LICENSE

commit 108938f7090ff878536515d911a8a07fc8a2a414
parent e732f918f9e7b0e381101755fae4ed0645f07bfb
Author: Greg Heartsfield <scsibug@imap.cc>
Date:   Sat, 11 Dec 2021 22:18:05 -0600

feat: add data directory to Dockerfile

Diffstat:
MDockerfile | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -14,6 +14,7 @@ RUN cargo build --release FROM debian:buster-slim ARG APP=/usr/src/app +ARG APP_DATA=/usr/src/app/db RUN apt-get update \ && apt-get install -y ca-certificates tzdata sqlite3 \ @@ -26,15 +27,17 @@ ENV TZ=Etc/UTC \ RUN groupadd $APP_USER \ && useradd -g $APP_USER $APP_USER \ - && mkdir -p ${APP} + && mkdir -p ${APP} \ + && mkdir -p ${APP_DATA} COPY --from=builder /nostr-rs-relay/target/release/nostr-rs-relay ${APP}/nostr-rs-relay RUN chown -R $APP_USER:$APP_USER ${APP} USER $APP_USER -WORKDIR ${APP} +WORKDIR ${APP_DATA} ENV RUST_LOG=info -CMD ["./nostr-rs-relay"] + +CMD ["../nostr-rs-relay"]