Skip to content

Commit

Permalink
Update Dockerfile and test github action to include libsodium+libsecp…
Browse files Browse the repository at this point in the history
…256k1-1
  • Loading branch information
aleksej-paschenko committed Nov 23, 2023
1 parent 97022b3 commit 09b0360
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
LD_LIBRARY_PATH: ${{ github.workspace }}/libs
LITE_SERVERS: ${{ secrets.LITE_SERVERS }}
run: |
sudo apt-get install -y libsecp256k1-dev
sudo apt-get install -y libsecp256k1-1
mkdir -p ${{ env.LD_LIBRARY_PATH}}
wget https://github.com/tonkeeper/tongo/raw/master/lib/linux/libemulator.so -O ${{ env.LD_LIBRARY_PATH}}/libemulator.so
make test
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ COPY internal internal
COPY cmd cmd
COPY pkg pkg

RUN apt-get update && \
apt-get install -y libsecp256k1-0 libsodium23
RUN go build -o /tmp/opentonapi github.com/tonkeeper/opentonapi/cmd/api


FROM ubuntu:20.04 as runner
RUN apt-get update && \
apt-get install -y openssl ca-certificates libsecp256k1-dev && \
apt-get install -y openssl ca-certificates libsecp256k1-0 libsodium23 && \
rm -rf /var/lib/apt/lists/*
COPY --from=build /go/pkg/mod/github.com/tonkeeper/tongo*/lib/linux /app/lib/
ENV LD_LIBRARY_PATH=/app/lib/
COPY --from=build /tmp/opentonapi /usr/bin/
CMD ["/usr/bin/opentonapi"]
CMD ["/usr/bin/opentonapi"]

0 comments on commit 09b0360

Please sign in to comment.