-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (52 loc) · 1.62 KB
/
Dockerfile
File metadata and controls
61 lines (52 loc) · 1.62 KB
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
54
55
56
57
58
59
60
FROM zaberit/nexus:3.0.20240503
ENV PATH /root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
USER root
RUN apt update ; apt install -y software-properties-common ; add-apt-repository ppa:deadsnakes/ppa \
&& apt install -y \
build-essential \
curl \
git \
libssl-dev \
libxml2-dev \
libxslt1-dev \
pypy3-dev \
python3-distutils \
python3.8 \
python3.8-dev \
python3.8-venv \
python3.9 \
python3.9-dev \
python3.9-distutils \
python3.10 \
python3.10-dev \
python3.10-distutils \
python3.11 \
python3.11-dev \
python3.11-distutils \
python3.12 \
python3.12-dev \
python3.13 \
python3.13-dev \
telnet \
vim-nox \
# Pip is handy to have around
&& curl https://bootstrap.pypa.io/get-pip.py -o /root/get-pip.py \
&& python3 /root/get-pip.py \
# We also use Nox
&& python3 -m pip install nox \
# Cleanup caches to reduce image size
&& python3 -m pip cache purge \
&& apt clean \
&& rm -rf ~/.cache \
&& rm -rf /var/lib/apt/lists/*
USER zaber
# Let's sit in the src directory by default
WORKDIR /src
# Copy over the data files
COPY --chown=zaber:zaber . /src
ENV PATH=/home/zaber/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN echo "Installing PDM" \
# SETUP Environment
&& /src/docker/setup-env.sh \
;
CMD /src/docker/run-test.sh