forked from scipr-lab/dizk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-dev
31 lines (24 loc) · 905 Bytes
/
Dockerfile-dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM dizk-base
# https://github.com/moby/moby/issues/4032#issuecomment-163689851
# https://github.com/moby/moby/issues/4032#issuecomment-192327844
ARG DEBIAN_FRONTEND=noninteractive
# Configure Java
RUN apt update && apt upgrade -y
RUN apt install -y \
curl \
# Temp dev tools
vim \
git
# Fetch Maven
ENV MAVEN_VERSION 3.6.3
RUN mkdir -p /usr/share/maven
RUN curl -fsSL https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz \
| tar -xzC /usr/share/maven --strip-components=1
RUN ln -s /usr/share/maven/bin/mvn /usr/bin/mvn
ENV MAVEN_HOME /usr/share/maven
# Create /home/dizk and use it as working directory
WORKDIR /home/dizk
# Mount the user-specific Maven configuration for Maven in the container
# See: https://maven.apache.org/ref/3.6.3/maven-settings/settings.html for more information
VOLUME /root/.m2
CMD ["/bin/bash"]