Skip to content

Instantly share code, notes, and snippets.



Last active Jul 30, 2017
What would you like to do?
Dockerfile for RobertaLab -
#To build:
#docker build -t psychemedia/robertalab .
#To probe/debug the build...
#docker run -it psychemedia/robertalab bash
#To run:
#docker run -p 1999:1999 psychemedia/robertalab
#To expose to other machines on the local netwrok, the docker VM needs port forwarding set up
FROM ubuntu
RUN apt-get clean -y && apt-get -y update && apt-get -y upgrade
RUN apt-get install -y git phantomjs maven
RUN apt-get clean -y
#RUN git clone git://
RUN apt-get install -y wget unzip && \
wget && \
unzip && \
RUN apt-get install -y default-jdk
# Define commonly used JAVA_HOME variable
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
WORKDIR /robertalab-master/OpenRobertaParent
RUN mvn clean install
WORKDIR /robertalab-master
CMD ["/robertalab-master/", "--start-server"]

This comment has been minimized.

Copy link
Owner Author

@psychemedia psychemedia commented May 21, 2016

When running in a container, to connect on localhost and to expose the port to other machines on the local network, port forwarding from the docker VM must be configured: Exposing Services Running in a Docker Container Running in Virtualbox to Other Computers on a Local Network

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment