-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
59 lines (56 loc) · 1.33 KB
/
Dockerfile
File metadata and controls
59 lines (56 loc) · 1.33 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
FROM debian:trixie-slim
ARG DEBIAN_FRONTEND=noninteractive
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV PATH=/root/.local/bin:$PATH
COPY . /tact
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
cargo \
g++ \
gcc \
gfortran \
liblapack-dev \
liblapack3 \
libopenblas-dev \
libopenblas0 \
libssl-dev \
locales \
meson \
pkg-config \
pypy3 \
pypy3-dev \
pypy3-venv \
wget \
&& wget -nv https://bootstrap.pypa.io/get-pip.py \
&& wget -nv -O get-poetry.py https://install.python-poetry.org \
&& rm /usr/lib/pypy3.*/EXTERNALLY-MANAGED \
&& pypy3 get-pip.py \
&& pypy3 get-poetry.py \
&& cd tact \
&& poetry self add poetry-plugin-export \
&& poetry export -f requirements.txt -o requirements.txt --without-hashes --only main \
&& pypy3 -mpip install -r requirements.txt --compile . \
&& cd .. \
&& pypy3 get-poetry.py --uninstall \
&& rm -rf get-pip.py get-poetry.py \
&& apt-get remove -y \
cargo \
g++ \
gcc \
gfortran \
liblapack-dev \
libopenblas-dev \
libssl-dev \
meson \
pkg-config \
pypy3-dev \
pypy3-venv \
wget \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/* \
&& rm -rf /var/log/* \
&& rm -rf ~/.cache \
&& rm -rf ~/.local