-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (36 loc) · 1001 Bytes
/
Dockerfile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM ubuntu:14.04
MAINTAINER Vai de Grails! <contact@vaidegrails.com>
### Default Grails version ###
ENV GRAILS_VERSION 3.2.8
ENV GRADLE_VERSION 3.4.1
### Auxilary programs ###
RUN apt-get update \
&& apt-get install -y \
curl \
git \
gitg \
nano \
software-properties-common \
zip \
unzip \
&& rm -rf /var/lib/apt/lists/*
### OpenJDK 8 installation ###
RUN add-apt-repository ppa:openjdk-r/ppa -y \
&& apt-get update \
&& apt-get install -y openjdk-8-jdk \
&& rm -rf /var/lib/apt/lists/*
### New user "develop" ###
RUN useradd -p "" -ms /bin/bash developer
ENV HOME /home/developer
USER developer
### Workdir definition ###
WORKDIR $HOME
###### Grails installation ######
RUN curl -s get.sdkman.io | bash
RUN /bin/bash -c "source $HOME/.sdkman/bin/sdkman-init.sh \
&& sdk install grails $GRAILS_VERSION"
RUN /bin/bash -c "source $HOME/.sdkman/bin/sdkman-init.sh \
&& sdk install gradle 3.4.1"
### Expose port 8080 (embedded Tomcat) and 5005 (debug) ###
EXPOSE 8080
EXPOSE 5005