-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Containerfile
44 lines (35 loc) · 1.06 KB
/
Containerfile
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
FROM docker.io/eclipse-temurin:22-jdk@sha256:ff2085dc0bb8e2abc4748cc7871a4e750d253c459cabde6797229569d15b977a
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
&& dpkg --add-architecture i386 \
&& apt update \
&& apt install -q -y bison \
bc \
curl \
flex \
g++-multilib \
git \
gperf \
liblz4-tool \
libncurses5 \
libssl-dev \
libxml2-utils \
make \
msmtp \
python-is-python3 \
rsync \
zip \
zlib1g-dev zlib1g-dev:i386 \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
COPY container/msmtprc /etc/msmtprc
RUN useradd -m -s /bin/bash -u 1000 builder
USER builder
RUN git config --global user.email "builder@example.com" \
&& git config --global user.name "builder"
RUN mkdir ~/bin \
&& curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo \
&& chmod a+x ~/bin/repo \
&& echo 'export PATH=~/bin:$PATH' >> ~/.bashrc
ENV PATH=~/bin:$PATH
WORKDIR /script
COPY . .