1
- FROM ghcr.io/blinklabs-io/haskell:9.6.3-3.10.2.0-1 as cardano-db-sync-build
1
+ FROM ghcr.io/blinklabs-io/haskell:9.6.3-3.10.2.0-1 AS cardano-db-sync-build
2
2
RUN apt-get update && apt-get install -y libpq-dev
3
3
# Install cardano-db-sync
4
- ARG DBSYNC_VERSION=13.2 .0.2
4
+ ARG DBSYNC_VERSION=13.3 .0.0
5
5
ENV DBSYNC_VERSION=${DBSYNC_VERSION}
6
- ARG DBSYNC_REF=tags/13.2 .0.2
6
+ ARG DBSYNC_REF=tags/13.3 .0.0
7
7
ENV DBSYNC_REF=${DBSYNC_REF}
8
+ ARG DBTOOL_VERSION=13.2.0.2
9
+ ENV DBTOOL_VERSION=${DBTOOL_VERSION}
8
10
RUN echo "Building ${DBSYNC_REF}..." \
9
11
&& echo ${DBSYNC_REF} > /CARDANO_DB_SYNC_REF \
10
12
&& git clone https://github.com/input-output-hk/cardano-db-sync.git \
@@ -18,15 +20,15 @@ RUN echo "Building ${DBSYNC_REF}..." \
18
20
&& cabal build cardano-db-tool \
19
21
&& mkdir -p /root/.local/bin/ \
20
22
&& cp -p dist-newstyle/build/$(uname -m)-linux/ghc-${GHC_VERSION}/cardano-db-sync-${DBSYNC_VERSION}/build/cardano-db-sync/cardano-db-sync /root/.local/bin/ \
21
- && cp -p dist-newstyle/build/$(uname -m)-linux/ghc-${GHC_VERSION}/cardano-db-tool-${DBSYNC_VERSION }/x/cardano-db-tool/build/cardano-db-tool/cardano-db-tool /root/.local/bin/ \
23
+ && cp -p dist-newstyle/build/$(uname -m)-linux/ghc-${GHC_VERSION}/cardano-db-tool-${DBTOOL_VERSION }/x/cardano-db-tool/build/cardano-db-tool/cardano-db-tool /root/.local/bin/ \
22
24
&& rm -rf /root/.cabal/packages \
23
25
&& rm -rf /usr/local/lib/ghc-${GHC_VERSION}/ /usr/local/share/doc/ghc-${GHC_VERSION}/ \
24
26
&& rm -rf /code/cardano-db-sync/dist-newstyle/ \
25
27
&& rm -rf /root/.cabal/store/ghc-${GHC_VERSION}
26
28
27
- FROM ghcr.io/blinklabs-io/cardano-configs:20240515-2 as cardano-configs
29
+ FROM ghcr.io/blinklabs-io/cardano-configs:20240515-2 AS cardano-configs
28
30
29
- FROM debian:bookworm-slim as cardano-db-sync
31
+ FROM debian:bookworm-slim AS cardano-db-sync
30
32
ENV LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
31
33
ENV PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
32
34
COPY --from=cardano-db-sync-build /usr/local/lib/ /usr/local/lib/
0 commit comments