Skip to content

Commit dc0d078

Browse files
committed
update docker
2 parents 0cc6630 + 82a73b5 commit dc0d078

File tree

2 files changed

+4
-20
lines changed

2 files changed

+4
-20
lines changed

Dockerfile.docs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,14 @@ FROM python:3.11-slim
44
RUN apt update && apt install -y build-essential
55

66
RUN python -m pip install --upgrade pip
7-
RUN python -m pip install mkdocs mkdocs-material pdocs
87

98
COPY . /opt/src
109

1110
WORKDIR /opt/src
1211

1312
RUN python -m pip install \
14-
stac_fastapi/types \
15-
stac_fastapi/api \
16-
stac_fastapi/extensions
13+
"stac_fastapi/types[docs]" \
14+
"stac_fastapi/api[docs]" \
15+
"stac_fastapi/extensions[docs]"
1716

18-
CMD ["pdocs", \
19-
"as_markdown", \
20-
"--output_dir", \
21-
"docs/api/", \
22-
"--exclude_source", \
23-
"--overwrite", \
24-
"stac_fastapi"]
17+
CMD ["mkdocs", "build", "-f", "docs/mkdocs.yml"]

docker-compose.docs.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,9 @@
1-
version: '3'
2-
31
services:
42
docs:
53
container_name: stac-fastapi-docs-dev
64
build:
75
context: .
86
dockerfile: Dockerfile.docs
97
platform: linux/amd64
10-
environment:
11-
- POSTGRES_USER=username
12-
- POSTGRES_PASS=password
13-
- POSTGRES_DBNAME=postgis
14-
- POSTGRES_HOST_READER=database
15-
- POSTGRES_HOST_WRITER=database
16-
- POSTGRES_PORT=5432
178
volumes:
189
- .:/opt/src

0 commit comments

Comments
 (0)