-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (24 loc) · 1.11 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
ARG IMAGE_NAME=devtty1er/binaryninja
FROM $IMAGE_NAME:latest as binaryninja
ARG TRAVIS_BRANCH="not_specified"
ENV TRAVIS_BRANCH=$TRAVIS_BRANCH
RUN python3 -c '\
import binaryninja; \
import os; \
version = binaryninja.UpdateChannel[os.environ["TRAVIS_BRANCH"]].versions[0]; \
print(f"Updating from {binaryninja.core_version()} to {version}..."); \
version.update(); \
binaryninja.update.install_pending_update()'; \
python3 -c 'import binaryninja; print(f"Updated to {binaryninja.core_version()}")'
FROM ubuntu:latest
COPY --from=binaryninja /opt/binaryninja/ /opt/binaryninja/
COPY --from=binaryninja /root/.binaryninja/license.dat /root/.binaryninja/license.dat
RUN apt-get update \
&& DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends \
ca-certificates \
libdbus-1-3 \
python3 \
&& echo "/opt/binaryninja/python" > $(python3 -c 'import site; print(site.getsitepackages()[0] + "/binaryninja.pth")') \
&& ln -s /opt/binaryninja/binaryninja /usr/local/bin/binaryninja \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives /tmp/* /var/tmp/*