forked from CardanoSolutions/kupo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (16 loc) · 742 Bytes
/
Dockerfile
File metadata and controls
22 lines (16 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.18.4 as certs
# hadolint ignore=DL3018
RUN apk add --no-cache ca-certificates
FROM --platform=${TARGETPLATFORM:-linux/amd64} busybox:1.35 as kupo
LABEL name=kupo
LABEL description="A fast, lightweight & configurable chain-index for Cardano."
COPY ./bin/kupo /bin/kupo
RUN chmod +x /bin/kupo
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
EXPOSE 1442/tcp
STOPSIGNAL SIGINT
HEALTHCHECK --interval=10s --timeout=5s --retries=1 CMD /bin/kupo health-check
ENTRYPOINT ["/bin/kupo"]