Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
infrastructure
mkdocs
Commits
cf09dde7
Commit
cf09dde7
authored
Nov 02, 2021
by
EKbfh
🐼
Browse files
Merge branch 'to-deb-image' into 'master'
Add reqs for deb See merge request
!3
parents
08ac9a41
3a4bd2ed
Pipeline
#34053
passed with stage
in 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
cf09dde7
FROM
alpine:latest
FROM
debian:11-slim
ARG
BUILD_PACKAGES="build-essential cmake gcc libffi-dev libmemcached-dev libssl-dev zlib1g-dev libpq-dev python3-dev"
RUN
set
-ex
\
&&
apk add
--virtual
.build-deps build-base python3-dev libxml2-dev libxslt-dev
\
&&
apk add
--no-cache
git curl python3 libxml2 libxslt
\
&&
python3
-m
ensurepip
\
&&
pip3
install
--upgrade
pip
\
&&
curl
-LJO
https://code.getnoc.com/noc/noc/-/raw/master/requirements.txt
\
&&
pip3
install
-r
requirements.txt
\
&&
apt update
&&
apt-get
install
-y
--no-install-recommends
\
$BUILD_PACKAGES
\
libxml2
\
python3
\
python3-pip
\
&&
pip3
install
\
lxml
==
4.6.2
\
mkdocs-material
==
7.3.3
\
mkdocs-macros-plugin
==
0.6.0
\
mkdocs-mermaid2-plugin
==
0.5.2
\
mkdocstrings
==
0.16.2
\
&&
apk del .build-deps
cachetools
\
atomicl
\
orjson
\
http_parser
\
&&
apt remove
--purge
-y
$BUILD_PACKAGES
\
&&
apt autoremove
-y
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
WORKDIR
/docs
VOLUME
/docs
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