Skip to content

Commit

Permalink
Merge pull request #297 from B-AROL-O/gmacario/feat/docs-docker
Browse files Browse the repository at this point in the history
[FEAT] docs: Add Dockerfile
  • Loading branch information
gmacario authored Apr 10, 2022
2 parents b054700 + cbb7c60 commit aeb453a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Project: ARNEIS
# File: docs/Dockerfile

# FROM python:3.9
FROM arm32v7/python:3.9
# FROM balenalib/raspberry-pi-python:3.9

WORKDIR /app
COPY . /app
RUN pip install --no-cache-dir -r requirements.txt && make html

EXPOSE 8000
CMD ["python", "-m", "http.server", "--directory", "_build/html", "8000"]

# EOF
29 changes: 29 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# ARNEIS documentation

## Run the documentation site in Docker

### Prerequisites

* [Docker Engine](https://www.docker.com/products/container-runtime)

### Build the Docker image

```bash
docker build -t baroloteam/arneis-docs .
```

### Run the Docker container

```bash
docker run -d -p 8000:8000 baroloteam/arneis-docs
```

Verify that the container is up and running

```bash
ps ax | grep baroloteam
```

then open `http://DOCKER_HOST:8000` from your browser.

<!-- EOF -->

0 comments on commit aeb453a

Please sign in to comment.