Skip to content

Commit

Permalink
Compile bbpPairings with alpine image (#133)
Browse files Browse the repository at this point in the history
* Compile bbpPairings with alpine image

for compatibility when running the exe from the lila container

fixes #132
  • Loading branch information
fitztrev authored Dec 21, 2024
1 parent b8a2d0f commit 08f7b31
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 2 additions & 7 deletions docker/bbpPairings.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
FROM ubuntu:focal
FROM sbtscala/scala-sbt:eclipse-temurin-alpine-21.0.2_13_1.10.4_3.5.2

RUN apt-get update && \
apt-get install --yes \
g++ \
git \
make \
&& apt-get clean
RUN apk add build-base

WORKDIR /mnt
3 changes: 2 additions & 1 deletion lila-docker
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ setup_bbppairings() {
docker run --rm -v ./repos/bbpPairings:/mnt bbppairings make

## verify it compiled
./repos/bbpPairings/bbpPairings.exe
docker compose run --rm --entrypoint="/opt/bbpPairings/bbpPairings.exe" lila \
&& echo "✅ bbpPairings compiled successfully"
}

reset_database() {
Expand Down

0 comments on commit 08f7b31

Please sign in to comment.