Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Goblin OGM
Goblin Buildchain
Commits
3b6b777d
Unverified
Commit
3b6b777d
authored
Jan 26, 2020
by
Jeffrey Phillips Freeman
💥
Browse files
Initial working docker container for building sphinx documentation.
parents
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
Dockerfile
Dockerfile
+24
-0
docker-compose.yml
docker-compose.yml
+7
-0
No files found.
Dockerfile
0 → 100644
View file @
3b6b777d
FROM
python:3.6-slim-buster
MAINTAINER
jeffrey.freeman@syncleus.com
# uwsgi must be compiled - install necessary build tools, compile uwsgi
# and then remove the build tools to minimize image size
# (buildDeps are removed, deps are kept)
RUN
set
-ex
\
&&
apt-get update
&&
apt-get
install
-y
build-essential
--no-install-recommends
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
pip
install
--upgrade
pip
\
&&
pip
install
sphinx
\
&&
find /usr/local
-depth
\
\(
\
\(
-type
d
-a
-name
test
-o
-name
tests
\)
\
-o
\
\(
-type
f
-a
-name
'*.pyc'
-o
-name
'*.pyo'
\)
\
\)
-exec
rm
-rf
'{}'
+
#Allow local installs via pip
RUN
mkdir
/.local
&&
chmod
a+rwx /.local
WORKDIR
/app
CMD
cd /app && pip install -U -r requirements.txt && cd /app/docs && make html
docker-compose.yml
0 → 100644
View file @
3b6b777d
version
:
'
3'
services
:
sphinx-builder
:
container_name
:
sphinx_build
image
:
'
goblinogm/sphinx-builder:latest'
build
:
context
:
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment