-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathDockerfile
40 lines (32 loc) · 1.12 KB
/
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
FROM ubuntu:20.04
ARG BUILDER_UID=9999
ARG DEBIAN_FRONTEND=noninteractive
ENV GRAILS_VERSION 2.4.4
ENV HOME /home/builder
ENV JAVA_TOOL_OPTIONS -Duser.home=/home/builder
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
ENV GRAILS_HOME /usr/lib/jvm/grails
ENV PATH $GRAILS_HOME/bin:$PATH
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
libxml2-utils \
maven \
openjdk-8-jdk \
python3-dev \
unzip \
wget \
&& rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 10
RUN wget -q https://bootstrap.pypa.io/get-pip.py \
&& python get-pip.py pip==22.0.2 setuptools==60.7.0 wheel==0.37.1 \
&& rm -rf get-pip.py
RUN pip install \
bump2version==0.5.10
WORKDIR /usr/lib/jvm
RUN wget https://github.com/grails/grails-core/releases/download/v$GRAILS_VERSION/grails-$GRAILS_VERSION.zip && \
unzip grails-$GRAILS_VERSION.zip && \
rm -rf grails-$GRAILS_VERSION.zip && \
ln -s grails-$GRAILS_VERSION grails
RUN useradd --create-home --no-log-init --shell /bin/bash --uid $BUILDER_UID builder
USER builder
WORKDIR /home/builder