Skip to content

Commit 9fd83be

Browse files
committed
add Containerfile
1 parent a839f8c commit 9fd83be

File tree

3 files changed

+533
-0
lines changed

3 files changed

+533
-0
lines changed

Containerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM docker.io/library/pypy:3.10-slim-bookworm as BASE
2+
3+
RUN apt-get update && \
4+
apt-get install -y curl gcc
5+
6+
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
7+
8+
ENV PATH=/root/.cargo/bin:/docs_venv/bin:$PATH
9+
10+
RUN rustup install 1.79.0
11+
12+
COPY requirements.txt /requirements.txt
13+
14+
RUN python3 -m venv /docs_venv && \
15+
pip install -r /requirements.txt
16+
17+
FROM docker.io/library/pypy:3.10-slim-bookworm
18+
19+
RUN apt-get update && \
20+
apt-get install -y --no-install-recommends cpanminus gcc git make && \
21+
cpanm Pod::[email protected] && \
22+
apt-get purge -y cpanminus && \
23+
apt-get autoremove -y && \
24+
apt-get clean
25+
26+
COPY --from=BASE /docs_venv /docs_venv
27+
28+
RUN chmod -R a+rwX /docs_venv
29+
30+
ENV PATH=/docs_venv/bin:$PATH
31+
32+
RUN useradd openssl-docs
33+
34+
USER openssl-docs

requirements.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
mike==2.1.2
2+
minify_html
3+
mkdocs==1.6.0
4+
mkdocs-material==9.5.27

0 commit comments

Comments
 (0)