Skip to content

Commit

Permalink
Merge pull request #14 from alvarogonjim/master
Browse files Browse the repository at this point in the history
Docker Image
  • Loading branch information
loic-vial authored Feb 3, 2020
2 parents dde5b00 + 92cb0e3 commit e52be12
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
FROM anibali/pytorch:no-cuda
MAINTAINER Alvaro Gonzalez Jimenez <alvarogonjim95@gmail.com>

# Install OpenJDK-8
RUN sudo apt-get update && \
sudo apt-get install -y openjdk-8-jdk && \
sudo apt-get install -y ant && \
sudo apt-get clean;

# Fix certificate issues
RUN sudo apt-get update && \
sudo apt-get install ca-certificates-java && \
sudo apt-get clean && \
sudo update-ca-certificates -f;

# Setup JAVA_HOME -- useful for docker commandline
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
RUN export JAVA_HOME
# Show the installed version of JAVA
RUN java -version

# Install Wget
RUN sudo apt-get install wget && sudo apt-get clean;
RUN java -version

# Install MAVEN
RUN sudo apt-get install -y maven;
# Show the verison of Maven
RUN mvn -version

# Install and upgrade pip3
RUN sudo apt-get install -y python3-pip;
RUN pip install --upgrade pip

# Install new version of pytorch
RUN pip3 install torch==1.4.0+cpu torchvision==0.5.0+cpu -f https://download.pytorch.org/whl/torch_stable.html

# Install git
RUN sudo apt-get install -y git;

# Clone repositories
# UFSAC Repository
RUN git clone https://github.com/getalp/UFSAC.git && \
cd UFSAC/java && \
mvn install && \
cd ../../;

# Disambiguate Repository
RUN git clone https://github.com/getalp/disambiguate.git && \
cd disambiguate/java && \
mvn compile && \
cd ../../;

0 comments on commit e52be12

Please sign in to comment.