-
Notifications
You must be signed in to change notification settings - Fork 2
/
Containerfile
32 lines (21 loc) · 766 Bytes
/
Containerfile
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
FROM docker.io/library/pypy:3.10-slim-bookworm as BASE
RUN apt-get update && \
apt-get install -y gcc
ENV PATH=/docs_venv/bin:$PATH
COPY requirements.txt /requirements.txt
RUN python3 -m venv /docs_venv && \
pip install -r /requirements.txt
FROM docker.io/library/pypy:3.10-slim-bookworm
RUN apt-get update && \
apt-get install -y --no-install-recommends cpanminus gcc git make && \
cpanm Pod::Markdown@3.400 && \
apt-get purge -y cpanminus && \
apt-get autoremove -y && \
apt-get clean
COPY --from=BASE /docs_venv /docs_venv
RUN chmod -R a+rwX /docs_venv
ENV PATH=/docs_venv/bin:$PATH \
GIT_COMMITTER_NAME=openssl-machine \
GIT_COMMITTER_EMAIL=openssl-machine@openssl.org
RUN useradd -m openssl-docs
USER openssl-docs