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

Added .dockerignore/trimmed docker images #268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node.out
node
node.out-*.tar.gz
11 changes: 7 additions & 4 deletions docker/Dockerfile.android
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ ENV CXXFLAGS -fPIC

RUN echo "[0/3] installing packages..." && \
apt-get -qq update && \

DEBIAN_FRONTEND=noninteractive apt-get -qq install -y \
DEBIAN_FRONTEND=noninteractive apt-get -qq install --no-install-recommends -y \
git \
ca-certificates \
unzip \
gcc gcc-multilib \
g++ g++-multilib \
curl \
file
file && \
apt-get clean && rm -r /var/lib/apt/lists/*


RUN echo "[1/2] cloning dependencies..." && \
git clone https://github.com/sjitech/android-gcc-toolchain
git clone --depth=1 --branch=master https://github.com/sjitech/android-gcc-toolchain && \
rm -rf android-gcc-toolchain/.git

RUN echo "[2/2] setting up..." && \
curl -fSOL https://dl.google.com/android/repository/$NDK_NAME.zip && \
Expand Down
10 changes: 5 additions & 5 deletions docker/Dockerfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ ENV _JAVA_OPTIONS -Xms1024m -Xmx1024m -XX:MaxPermSize=512m

RUN echo "[0/3] installing packages..." && \
apt-get -qq update && \
DEBIAN_FRONTEND=noninteractive apt-get -qq install -y \
openjdk-7-jdk \
DEBIAN_FRONTEND=noninteractive apt-get -qq install --no-install-recommends -y \
openjdk-7-jdk \
git \
unzip \
gcc gcc-multilib \
g++ g++-multilib \
curl \
file \
execstack \
maven
execstack \
maven && \
apt-get clean && rm -r /var/lib/apt/lists/*

CMD cd jni && \
echo "building...." && \
Expand Down Expand Up @@ -44,4 +45,3 @@ CMD cd jni && \
strip --strip-unneeded -R .note -R .comment libj2v8_linux_x86_64.so && \
cd .. && \
mvn clean verify -e