forked from numenta/htm.java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 680 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) · 680 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM java:8
RUN wget -q https://services.gradle.org/distributions/gradle-2.12-bin.zip \
&& unzip -q gradle-2.12-bin.zip -d /opt \
&& rm gradle-2.12-bin.zip
ENV GRADLE_HOME /opt/gradle-2.12
ENV GRADLE_OPTS -Dorg.gradle.daemon=true
ENV PATH $GRADLE_HOME/bin:$PATH
RUN wget -q http://apache.mirrors.pair.com/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.zip \
&& unzip -q apache-maven-3.3.9-bin.zip -d /opt \
&& rm apache-maven-3.3.9-bin.zip
ENV M2_HOME /opt/apache-maven-3.3.9
ENV PATH $M2_HOME/bin:$PATH
# Prepare a user account for use at runtime. boot2docker uses uid 1000.
RUN useradd --uid 1000 -m vagrant
USER vagrant
WORKDIR /home/vagrant
CMD ["bash"]