-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #297 from B-AROL-O/gmacario/feat/docs-docker
[FEAT] docs: Add Dockerfile
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --> |