-
Notifications
You must be signed in to change notification settings - Fork 32
/
Dockerfile
30 lines (24 loc) · 1.07 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
30
FROM ubuntu:20.04
LABEL MAINTAINER KBase developers
# Update apt and install jdk and docker engine to get docker clients
# Docker installation instructions from https://docs.docker.com/engine/install/ubuntu/
RUN apt-get -y update && \
DEBIAN_FRONTEND=noninteractive apt-get -y install tzdata openjdk-8-jdk make git ant curl gnupg-agent apt-transport-https ca-certificates software-properties-common && \
update-java-alternatives -s java-1.8.0-openjdk-amd64 && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - && \
add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable" && \
apt-get -y update && \
apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
# Add kb-sdk src and fix CallbackServer interface
ADD . /src
RUN \
cd /src && \
sed -i 's/en0/eth0/' src/java/us/kbase/common/executionengine/CallbackServer.java && \
make && \
/src/entrypoint prune && rm -rf /src/.git
ENV PATH=$PATH:/src/bin
ENTRYPOINT [ "/src/entrypoint" ]
CMD [ ]