Skip to content

Commit

Permalink
add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
schottsfired committed Sep 17, 2016
1 parent 6b21916 commit 6fa646e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM selenium/standalone-firefox:latest

ENV MAVEN_VERSION 3.3.3
ENV DISPLAY :99

USER root

RUN apt-get update -qqy \
&& apt-get install -y openjdk-8-jdk && \
rm -rf /var/lib/apt/lists/*

RUN wget -O- http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xzf - -C /opt \
&& mv /opt/apache-maven-$MAVEN_VERSION /opt/maven \
&& ln -s /opt/maven/bin/mvn /usr/bin/mvn

RUN mkdir /home/seluser/gameoflife-acceptance-tests \
&& mkdir /home/seluser/gameoflife-web
COPY /gameoflife-acceptance-tests /home/seluser/gameoflife-acceptance-tests
COPY /gameoflife-web /home/seluser/gameoflife-web
RUN chown -R seluser /home/seluser/gameoflife-acceptance-tests \
&& chmod -R u+rX /home/seluser/gameoflife-acceptance-tests \
&& chown -R seluser /home/seluser/gameoflife-web \
&& chmod -R u+rX /home/seluser/gameoflife-web

USER seluser

ENV MAVEN_HOME /opt/maven

EXPOSE 9090

CMD ["mvn"]

0 comments on commit 6fa646e

Please sign in to comment.