Skip to content

Commit

Permalink
Merge pull request #106 from geniusyield/use-base-image
Browse files Browse the repository at this point in the history
Use base image
  • Loading branch information
sourabhxyz authored Jul 24, 2024
2 parents e5d856f + dc59b71 commit a643bf3
Showing 1 changed file with 1 addition and 41 deletions.
42 changes: 1 addition & 41 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,44 +1,4 @@
FROM haskell:9.2.8-slim as builder

ENV LANG C.UTF-8

RUN apt-get update && \
apt-get install -y --no-install-recommends \
autoconf \
automake \
build-essential \
chrony \
libncursesw5 \
liblzma-dev \
libpq-dev \
libssl-dev \
libsystemd-dev \
libtool \
pkg-config \
procps \
tmux && \
rm -rf /var/lib/apt/lists/*

# Libsodium:
RUN git clone https://github.com/input-output-hk/libsodium && \
cd libsodium && \
git checkout dbb48cc && \
./autogen.sh && \
./configure && \
make && \
make install

# Libsecp256k1:
RUN git clone https://github.com/bitcoin-core/secp256k1 && \
cd secp256k1 && \
git checkout ac83be33d0956faf6b7f61a60ab524ef7d6a473a && \
./autogen.sh && \
./configure --prefix=/usr --enable-module-schnorrsig --enable-experimental && \
make && \
make install

ENV LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"
ENV PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
FROM ghcr.io/geniusyield/haskell-base-image:9.2.8

# ==================================[ BUILD ]========================================
WORKDIR /SOR
Expand Down

0 comments on commit a643bf3

Please sign in to comment.