Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use base image #89

Merged
merged 2 commits into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 /MM
Expand Down
Loading