Skip to content

Commit

Permalink
Fixes pozgo#50: Added discord badge with link to chat adn arm info (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
pozgo authored Jun 12, 2020
1 parent 5e6e8b5 commit 28b2e63
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Dockerfile-arm64v8
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
FROM arm64v8/alpine

ENV MKDOCS_VERSION=1.1.2 \
DOCS_DIRECTORY='/mkdocs' \
LIVE_RELOAD_SUPPORT='false' \
ADD_MODULES='false' \
FAST_MODE='false' \
PYTHONUNBUFFERED=1 \
GIT_REPO='false' \
GIT_BRANCH='master' \
AUTO_UPDATE='false' \
UPDATE_INTERVAL=15

ADD container-files/ /

RUN \
apk add --update \
ca-certificates \
bash \
git \
openssh \
python3 \
python3-dev \
py3-pip \
build-base && \
pip install --upgrade pip && \
pip install mkdocs==${MKDOCS_VERSION} && \
cd /bootstrap && pip install -e /bootstrap && \
rm -rf /tmp/* /var/tmp/* /var/cache/apk/* /var/cache/distfiles/* && \
chmod 600 /root/.ssh/config

CMD ["/usr/bin/bootstrap", "start"]
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
### MkDocs in a docker.

[![Discord](https://img.shields.io/discord/720919856815276063)](https://discord.com/channels/720919856815276063/720920716249137233)
[![Docker Image MKDocs](https://github.com/pozgo/docker-mkdocs/workflows/Docker%20Image%20MKDocs/badge.svg?branch=master)](https://github.com/pozgo/docker-mkdocs/actions?query=workflow%3A%22Build+%26+Test+MKDocs%22)
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fpozgo%2Fdocker-mkdocs.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fpozgo%2Fdocker-mkdocs?ref=badge_shield)

Expand All @@ -19,6 +20,17 @@ MkDocs is a fast, simple and downright gorgeous static site generator that's gea

Purpose of this image was to simplify the process of deploying MkDocs. This image is based on Alpine Linux to minimize the size of the image.

### ARM based image
To build ARM based image Docker Desktop for macOS can be used.

Example build:

```bash
docker build . --file Dockerfile-arm64v8 polinux/mkdocs:arm64v8-1.1.2
```

### Docker compose example

```yaml
version: '3'

Expand Down

0 comments on commit 28b2e63

Please sign in to comment.