-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (48 loc) · 1.53 KB
/
Dockerfile
File metadata and controls
60 lines (48 loc) · 1.53 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 ubuntu:24.04
# Meta labels
LABEL maintainer="Gregor Cerar <gregor.cerar@ijs.si>"
ARG UNAME=builder
ARG UID=1000
ARG GID=1000
# Suppress any manual intervention, while configuring packets
ARG DEBIAN_FRONTEND=noninteractive
# Hugo version
ARG HUGO=0.154.5
# Speedup Python
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Make RUN commands use `bash --login`:
SHELL ["/bin/bash", "--login", "-exc"]
WORKDIR /src
RUN : \
&& apt-get update -q \
&& apt-get install -qyy \
-o APT::Install-Recommends=false \
-o APT::Install-Suggests=false \
curl ca-certificates gdebi gnupg2 build-essential \
make git rsync python3-pip \
&& (curl -fsSL https://deb.nodesource.com/setup_22.x | bash -) \
&& apt-get update -q \
&& apt-get install -qyy \
-o APT::Install-Recommends=false \
-o APT::Install-Suggests=false \
nodejs \
&& curl -o hugo.deb -L https://github.com/gohugoio/hugo/releases/download/v${HUGO}/hugo_extended_${HUGO}_linux-amd64.deb \
&& gdebi --non-interactive hugo.deb \
&& rm hugo.deb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& groupadd --non-unique -g ${GID} -o ${UNAME} \
&& useradd -m --uid ${UID} --gid ${GID} -o -s /bin/bash ${UNAME} \
&& chown -R ${UID}:${GID} /src \
&& :
USER ${UID}:${GID}
ENV PATH="${PATH}:/home/${UNAME}/.local/bin"
RUN python3 -m pip install \
--user \
--no-cache-dir \
--break-system-packages \
"arxiv~=2.1.0" \
requests \
unidecode \
ujson