Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
Fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoconti83 committed Aug 5, 2019
1 parent 273a96f commit c511fe0
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,24 @@ ENV PATH $PATH:/usr/local/sbin:/usr/sbin:/sbin
####### BASE TOOLS #######
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -qqy --no-install-recommends git wget build-essential gcc software-properties-common openjdk-8-jre-headless \
unzip clang vim pkg-config strace less g++-multilib libc6-dev-i386
RUN apt-get install -qqy --no-install-recommends \
git \
wget \
build-essential \
gcc \
software-properties-common \
unzip \
clang \
vim \
pkg-config \
strace \
less \
g++-multilib \
libc6-dev-i386 \
sudo \
openjdk-8-jdk-headless \
openjdk-8-jre-headless

ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64

######## ANDROID #########
Expand Down Expand Up @@ -66,6 +82,13 @@ ENV RUST_HOME ~/.rust

ENV PKG_CONFIG_PATH=/home/rust/cryptobox-jni/android/build/libsodium-android-armv7-a/lib/pkgconfig

######### ADDITIONAL TOOLS ############
USER root
RUN apt-get install -qqy --no-install-recommends \
zip
USER rust

######### Build ##############
WORKDIR /home/rust
COPY --chown=rust . cryptobox-jni
WORKDIR cryptobox-jni/android
Expand Down

0 comments on commit c511fe0

Please sign in to comment.