forked from nelsonjchen/gh-pages-pelican-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (44 loc) · 1.55 KB
/
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
FROM python:3.12-slim
LABEL "com.github.actions.name"="Pelican for GitHub Pages"
LABEL "com.github.actions.description"="Builds and deploys the Pelican project to GitHub Pages"
LABEL "com.github.actions.icon"="home"
LABEL "com.github.actions.color"="red"
LABEL "Name"="Pelican for GitHub Pages"
LABEL "Version"="0.1.0"
ENV LC_ALL C.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
# Install node via instructions at https://github.com/nodesource/distributions
RUN apt-get update \
&& apt-get install --no-install-recommends -qy git curl bash ca-certificates gnupg
RUN mkdir -p /etc/apt/keyrings
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
RUN apt-get update
RUN apt-get install -y nodejs npm
# Pre-requisites for Pillow, a key requirement for many python-based pelican installs.
# Per https://pillow.readthedocs.io/en/stable/installation.html#
RUN apt-get install -y \
libffi-dev \
libfreetype6-dev \
libfribidi-dev \
libharfbuzz-dev \
libjpeg-turbo-progs \
libjpeg62-turbo-dev \
liblcms2-dev \
libopenjp2-7-dev \
libtiff5-dev \
libwebp-dev \
libssl-dev \
meson \
netpbm \
tcl8.6-dev \
tk8.6-dev \
xvfb \
zlib1g-dev \
libxml2-dev \
libxslt-dev \
python3-distutils \
python3-setuptools
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]