Skip to content

Commit

Permalink
Docker: fix /dmrdb persistence
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Dec 3, 2023
1 parent 1fef34c commit 9273d9f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
FROM alpine:latest AS dir

RUN mkdir -p /dmrdb

FROM scratch

# this pulls directly from the upstream image, which already has ca-certificates:
Expand All @@ -6,5 +10,6 @@ COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY DMRHub /

ENV DMRDatabaseDirectory=/dmrdb
COPY --from=dir /dmrdb /dmrdb

ENTRYPOINT ["/DMRHub"]

0 comments on commit 9273d9f

Please sign in to comment.