Skip to content

Instantly share code, notes, and snippets.

@rob-b
Created October 7, 2015 15:22
Show Gist options
  • Save rob-b/563a09f7c4ad64d0f70e to your computer and use it in GitHub Desktop.
Save rob-b/563a09f7c4ad64d0f70e to your computer and use it in GitHub Desktop.
Java 8 docker file for working with mechanical turk
FROM ubuntu:14.04
RUN \
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
apt-get update && \
apt-get install -y software-properties-common python-software-properties && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
ENV MTURK_JVM_ARGS -Djdk.tls.trustNameService=true
CMD ["bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment