docker: enable sqlcipher (#1390)

This commit is contained in:
sh 2022-11-20 14:56:01 +03:00 committed by GitHub
parent b8298aa458
commit b5652bce81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
FROM ubuntu:focal AS build
# Install curl and simplex-chat-related dependencies
RUN apt-get update && apt-get install -y curl git build-essential libgmp3-dev zlib1g-dev
RUN apt-get update && apt-get install -y curl git build-essential libgmp3-dev zlib1g-dev libssl-dev
# Install ghcup
RUN a=$(arch); curl https://downloads.haskell.org/~ghcup/$a-linux-ghcup -o /usr/bin/ghcup && \
@ -21,6 +21,9 @@ WORKDIR /project
# Adjust PATH
ENV PATH="/root/.cabal/bin:/root/.ghcup/bin:$PATH"
# Adjust build
RUN cp ./scripts/cabal.project.local.linux ./cabal.project.local
# Compile simplex-chat
RUN cabal update
RUN cabal install

View file

@ -1,9 +1,6 @@
ignore-project: False
# amend to point to the actual openssl location
package direct-sqlcipher
extra-include-dirs: /usr/local/opt/openssl@1.1/include
extra-lib-dirs: /usr/local/opt/openssl@1.1/lib
flags: +openssl
test-show-details: direct