Skip to content

Commit 540b075

Browse files
committed
use mkcert for the dockerfile
that automatically adds a root authority
1 parent c4cd4e8 commit 540b075

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/batcher.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ COPY ../scripts/test_files/ ./scripts/test_files
6060
COPY ./config-files/config-batcher-docker.yaml ./config-files/
6161
COPY ./config-files/anvil.batcher.ecdsa.key.json ./config-files/
6262

63-
RUN apt update -y && apt install -y libssl-dev ca-certificates
64-
RUN openssl req -x509 -days 1825 -newkey rsa:2048 -keyout rootCA.key -out rootCA.crt -nodes -subj '/CN=localhost'
63+
RUN apt update -y && apt install -y libssl-dev ca-certificates mkcert
64+
RUN mkcert localhost -cert-file rootCA.crt -key-file rootCA.key
6565

6666
CMD ["aligned-batcher", "--config", "./config-files/config-batcher-docker.yaml", "--cert", "./rootCA.crt", "--key", "./rootCA.key"]

0 commit comments

Comments
 (0)