Skip to content

Commit

Permalink
Dockerise docs site
Browse files Browse the repository at this point in the history
  • Loading branch information
Syriiin committed Apr 24, 2024
1 parent 6e9b8de commit caa5d1b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ services:
- 5003:80
environment:
- ASPNETCORE_ENVIRONMENT=Development

docs:
ports:
- 8000:8000
5 changes: 5 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,10 @@ services:
cache:
image: redis:6

docs:
build: ./docs
volumes:
- ./docs:/docs

volumes:
beatmaps:
1 change: 1 addition & 0 deletions docs/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.venv/
17 changes: 17 additions & 0 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM python:3.12-alpine3.19

RUN apk add --no-cache tini

WORKDIR /docs

COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

COPY . .

EXPOSE 8000

ENTRYPOINT [ "/sbin/tini", "--", "mkdocs" ]

CMD [ "serve", "--dev-addr=0.0.0.0:8000"]

0 comments on commit caa5d1b

Please sign in to comment.