Skip to content

Commit 5bb53f2

Browse files
committed
build(Dockerfile): create new for docs
Reverted the changes to the original Dockerfile so if someone is using it, it still works as expected.
1 parent 22eb6e8 commit 5bb53f2

File tree

3 files changed

+29
-10
lines changed

3 files changed

+29
-10
lines changed

.github/workflows/docker.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v3
1111
- name: Build Docker image
12-
run: docker build -t eis_toolkit -f ./Dockerfile .
12+
run: docker build -t eis_toolkit -f ./Dockerfile-docs .
1313
- name: Run mkdocs in Docker container
1414
run: |
1515
docker run -v ./site/pdf/:/eis_toolkit/site/pdf/ --env ENABLE_PDF_EXPORT=1 eis_toolkit poetry run mkdocs build

Dockerfile

+2-9
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,13 @@ WORKDIR /eis_toolkit
77

88
ARG DEBIAN_FRONTEND=noninteractive
99
RUN apt-get update && apt-get install -y \
10-
libpango-1.0-0 \
11-
libharfbuzz0b \
12-
libpangoft2-1.0-0 \
1310
libgdal-dev \
1411
python3-pip
1512

1613
RUN pip install poetry pre-commit
1714

18-
COPY poetry.lock pyproject.toml mkdocs.yml /eis_toolkit/
19-
COPY docs /eis_toolkit/docs/
20-
COPY docs_assets /eis_toolkit/docs_assets/
21-
COPY eis_toolkit /eis_toolkit/eis_toolkit/
22-
COPY tests /eis_toolkit/tests/
15+
COPY poetry.lock pyproject.toml /eis_toolkit/
2316

2417
RUN poetry install
2518

26-
# COPY . .
19+
COPY . .

Dockerfile-docs

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM ubuntu:22.04
2+
3+
EXPOSE 8888
4+
EXPOSE 8000
5+
6+
WORKDIR /eis_toolkit
7+
8+
ARG DEBIAN_FRONTEND=noninteractive
9+
RUN apt-get update && apt-get install -y \
10+
libpango-1.0-0 \
11+
libharfbuzz0b \
12+
libpangoft2-1.0-0 \
13+
libgdal-dev \
14+
python3-pip
15+
16+
RUN pip install poetry pre-commit
17+
18+
COPY poetry.lock pyproject.toml mkdocs.yml /eis_toolkit/
19+
COPY docs /eis_toolkit/docs/
20+
COPY docs_assets /eis_toolkit/docs_assets/
21+
COPY eis_toolkit /eis_toolkit/eis_toolkit/
22+
COPY tests /eis_toolkit/tests/
23+
24+
RUN poetry install
25+
26+
# COPY . .

0 commit comments

Comments
 (0)