-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
47 lines (42 loc) · 871 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
46
47
FROM debian:buster-slim
RUN apt update && apt install -y \
apache2 \
apache2-dev \
build-essential \
curl \
gettext \
iproute2 \
junit4 \
liblz4-dev \
libperl-dev \
libserf-dev \
libssl-dev \
libutf8proc-dev \
m4 \
openjdk-11-jdk-headless \
pax \
python \
python-dev \
python-pip \
python-yaml \
py3c-dev \
ruby \
ruby-dev \
swig \
subversion \
sudo \
unzip \
vim \
wget \
zip \
zlib1g-dev \
&& pip install ctypesgen && apt clean && chmod a+rw /opt
COPY /scripts /opt/scripts
RUN chmod a+rx /opt/scripts/*.sh
RUN useradd --create-home -s /bin/bash -u 501 svnrm \
&& echo svnrm:svnrm | chpasswd \
&& adduser svnrm sudo
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER svnrm
WORKDIR /home/svnrm
RUN /opt/scripts/init.sh