Skip to content

Commit f2ec9f6

Browse files
author
Saeid Darvish
committed
added Dockerfile
1 parent 2d4ebed commit f2ec9f6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM python:3.11.2-alpine
2+
3+
WORKDIR /docs
4+
5+
EXPOSE 80:8000
6+
7+
COPY source /docs/
8+
COPY requirements.txt /docs/requirements.txt
9+
10+
RUN python -m pip install --upgrade pip \
11+
&& python -m pip install -r requirements.txt \
12+
&& python -m sphinx.cmd.build . _build
13+
14+
ENTRYPOINT ["sh", "-c", "cd _build && python -m http.server"]

0 commit comments

Comments
 (0)