forked from specify/web-asset-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjenkins_dockerfile
53 lines (45 loc) · 1.36 KB
/
jenkins_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
48
49
50
51
52
53
FROM jenkins/jenkins:lts
USER root
ARG DEBIAN_FRONTEND=noninteractive
# Install necessary dependencies
RUN apt-get update \
&& apt-get --no-install-recommends -y install \
curl \
build-essential \
libssl-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
libffi-dev \
zlib1g-dev \
libjpeg-dev \
wget \
tk-dev \
liblzma-dev
# Install Python 3.12 from source
RUN wget https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz \
&& tar -xzf Python-3.12.0.tgz \
&& cd Python-3.12.0 \
&& ./configure --enable-optimizations \
&& make altinstall \
&& cd .. \
&& rm -rf Python-3.12.0 Python-3.12.0.tgz
# Verify installation
RUN python3.12 --version
# Install pip for Python 3.12
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12
# Install other necessary packages
RUN apt-get --no-install-recommends -y install \
tzdata \
imagemagick \
uwsgi \
uwsgi-plugin-python3 \
libimage-exiftool-perl \
gcc-aarch64-linux-gnu \
docker.io \
rsync \
python3.12-venv
# Install docker-compose
RUN curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
chmod +x /usr/local/bin/docker-compose
USER jenkins