-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (18 loc) · 702 Bytes
/
Dockerfile
File metadata and controls
30 lines (18 loc) · 702 Bytes
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
FROM electronuserland/builder:wine
MAINTAINER Heriberto Reyes Esparza <hery.chemo@gmail.com>
# Update wine Release key
RUN wget -qO - https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_18.04/Release.key | apt-key add -
# Update apt-get
RUN apt-get update -y
# Install Java and Maven
RUN apt-get install -y openjdk-8-jre-headless maven
# Clean-up apt
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Add maven non root user.
RUN useradd -m -d /usr/share/maven maven -s /bin/bash
RUN chown -R maven /usr/share/maven
RUN chown -R maven /project
ARG USER_HOME_DIR="/usr/share/maven"
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2"
USER maven
WORKDIR /project