2024-02-01 13:12:24 +00:00
|
|
|
FROM node:18-bookworm-slim
|
|
|
|
LABEL maintainer="Glenn ROLLAND glenux@glenux.net"
|
2021-10-10 09:21:36 +00:00
|
|
|
|
2021-11-23 22:46:50 +00:00
|
|
|
RUN apt-get update \
|
2021-11-30 12:33:42 +00:00
|
|
|
&& apt-get install -y --no-install-recommends python3 python3-pip pipenv \
|
2021-11-30 12:38:30 +00:00
|
|
|
&& apt-get clean \
|
2021-11-30 12:33:42 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
|
|
|
|
&& truncate -s 0 /var/log/*log
|
2021-10-10 09:21:36 +00:00
|
|
|
|
2021-12-21 16:38:13 +00:00
|
|
|
# Tools for running the common parts
|
2021-11-23 22:46:50 +00:00
|
|
|
RUN apt-get update \
|
2022-01-28 17:46:55 +00:00
|
|
|
&& apt-get install -y --no-install-recommends make build-essential inotify-tools gosu unzip curl \
|
2021-12-21 16:38:13 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
|
|
|
|
&& truncate -s 0 /var/log/*log
|
|
|
|
|
|
|
|
# Tools for building pdfs
|
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends make pdftk m4 chromium \
|
2021-11-23 22:46:50 +00:00
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
|
|
|
|
&& truncate -s 0 /var/log/*log
|
2021-10-10 09:21:36 +00:00
|
|
|
|
2022-01-28 17:41:34 +00:00
|
|
|
# External tools
|
|
|
|
# yq => manage YML
|
2022-01-30 16:15:32 +00:00
|
|
|
RUN curl -sSL -o /usr/local/bin/yq \
|
2022-01-28 17:41:34 +00:00
|
|
|
https://github.com/mikefarah/yq/releases/download/v4.18.1/yq_linux_amd64 \
|
|
|
|
&& chmod +x /usr/local/bin/yq
|
|
|
|
|
2021-10-10 09:21:36 +00:00
|
|
|
COPY . /app
|
2022-08-18 08:55:58 +00:00
|
|
|
COPY .marp /app/.marp
|
2021-10-10 09:21:36 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
2021-12-15 16:47:14 +00:00
|
|
|
ENV LANG=C.UTF-8 \
|
|
|
|
LC_ALL=C.UTF-8 \
|
2021-12-15 17:10:04 +00:00
|
|
|
PIPENV_HIDE_EMOJIS=1 \
|
|
|
|
PIPENV_VENV_IN_PROJECT=1
|
2021-10-10 09:21:36 +00:00
|
|
|
|
2021-12-15 16:47:14 +00:00
|
|
|
RUN ln -sf python3 /usr/bin/python \
|
|
|
|
&& make prepare SYSTEM_INSTALL=1
|
2021-11-30 13:02:48 +00:00
|
|
|
|
2021-10-10 09:21:36 +00:00
|
|
|
ENTRYPOINT ["/app/docker/entrypoint.sh"]
|
|
|
|
CMD ["watch"]
|
2021-12-15 16:47:14 +00:00
|
|
|
|