-
Notifications
You must be signed in to change notification settings - Fork 18
/
dodona-python.dockerfile
57 lines (49 loc) · 1.59 KB
/
dodona-python.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
54
55
56
57
FROM python:3.12.4-slim-bullseye
RUN chmod 711 /mnt && \
useradd -m runner && \
apt-get update && \
apt-get -y install --no-install-recommends \
emboss=6.6.0+dfsg-9 \
gcc=4:10.2.1-1 \
g++=4:10.2.1-1 \
fontconfig=2.13.1-4.2 \
libc6-dev \
libcairo2-dev=1.16.0-5 \
make=4.3-4.1 \
procps=2:3.3.17-5 \
wget=1.21-1+deb11u1 \
zlib1g-dev=1:1.2.11.dfsg-2+deb11u2 && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean && \
# Judge dependencies
pip install --no-cache-dir --upgrade \
Pillow==10.0.1 \
cairosvg==2.7.1 \
jsonschema==4.19.1 \
mako==1.2.4 \
psutil==5.9.5 \
pydantic==2.4.2 \
pyhumps==3.8.0 \
pylint==3.0.1 \
pyshp==2.3.1 \
svg-turtle==0.4.2 \
typing-inspect==0.9.0 && \
# Exercise dependencies
pip install --no-cache-dir --upgrade numpy==1.26.0 biopython==1.81 sortedcontainers==2.4.0 pandas==2.1.1
WORKDIR /tmp
RUN wget --progress=dot:giga -O fasta-36.3.8h.tar.gz https://github.com/wrpearson/fasta36/archive/refs/tags/v36.3.8h_04-May-2020.tar.gz && \
tar xzf fasta-36.3.8h.tar.gz
WORKDIR /tmp/fasta36-36.3.8h_04-May-2020/src
RUN make -f ../make/Makefile.linux64 all && \
sed -i "/XDIR/s#= .*#= /usr/bin#" ../make/Makefile.linux64 && \
make -f ../make/Makefile.linux64 install
WORKDIR /tmp
RUN rm fasta-36.3.8h.tar.gz fasta36-36.3.8h_04-May-2020 -r && \
fc-cache -f && \
apt-get -y purge --autoremove gcc g++ make wget && \
mkdir -p /home/runner/workdir && \
chown -R runner:runner /home/runner && \
chown -R runner:runner /mnt
USER runner
WORKDIR /home/runner/workdir
COPY main.sh /main.sh