-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
22 lines (16 loc) · 924 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM ubuntu:20.04
MAINTAINER Kristian Peters ([email protected])
# Install packages
RUN apt-get -y update && apt-get -y dist-upgrade && apt-get -y --allow-unauthenticated install apt-transport-https git make gcc g++ maven openjdk-8-jdk-headless openjdk-8-jre-headless
# Install cdk-inchi-to-svg
WORKDIR /tmp
RUN git clone https://github.com/ipb-halle/cdk-inchi-to-svg && \
cd cdk-inchi-to-svg && cd cdk-inchi-to-svg && \
mvn package && \
for i in $(find . -name "*with-dependencies*jar"); do install -m755 "$i" /usr/local/bin/cdk-inchi-to-svg.jar; done
# Cleanup
RUN apt-get -y --purge --auto-remove remove git make gcc g++ openjdk-8-jdk-headless maven && \
apt-get -y clean && apt-get -y autoremove && rm -rf /var/lib/{cache,log}/ /tmp/* /var/tmp/*
# CMD
#CMD ["/usr/local/bin/java", "-jar", "/usr/local/bin/cdk-inchi-to-svg.jar"]
ENTRYPOINT ["java", "-jar", "/usr/local/bin/cdk-inchi-to-svg.jar"]