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
Vladimir
noc
Commits
a3e0c26d
Commit
a3e0c26d
authored
Jun 10, 2020
by
Dmitry Volodin
Browse files
Merge branch 'fix-docker-image-proj' into 'master'
Fix docker image build See merge request
noc/noc!3784
parents
ddbd493d
c6281498
Changes
1
Hide whitespace changes
Inline
Side-by-side
.docker/Dockerfile
View file @
a3e0c26d
...
...
@@ -22,26 +22,29 @@ RUN apk add --update --no-cache \
tzdata
\
libmemcached
\
curl
\
&&
apk add
--no-cache
--virtual
.build-deps
\
git
\
build-base
\
cyrus-sasl-dev
\
cython
\
cython-dev
\
gcc
\
libffi-dev
\
libmemcached-dev
\
libressl-dev
\
musl-dev
\
postgresql-dev
\
python3-dev
\
zlib-dev
\
cmake
\
proj
RUN
apk add
--no-cache
--virtual
.build-deps
\
git
\
build-base
\
cyrus-sasl-dev
\
cython
\
cython-dev
\
gcc
\
libffi-dev
\
libmemcached-dev
\
libressl-dev
\
musl-dev
\
postgresql-dev
\
python3-dev
\
zlib-dev
\
cmake
\
proj-util
\
proj-dev
\
&&
pip3
install
--src
=
/tmp/src
--no-cache
--trusted-host
cdn.getnoc.com
--find-links
https://cdn.getnoc.com/npkg/
--upgrade
-r
/opt/noc/requirements/docker.txt
\
&&
python ./scripts/deploy/install-packages requirements/web.json
\
&&
python ./scripts/deploy/install-packages requirements/card.json
\
&&
python ./scripts/deploy/install-packages requirements/bi.json
\
&&
find /opt/noc/
-type
f
-name
"*.py"
-print0
| xargs
-0
python
-m
py_compile
\
&&
python
3
./scripts/deploy/install-packages requirements/web.json
\
&&
python
3
./scripts/deploy/install-packages requirements/card.json
\
&&
python
3
./scripts/deploy/install-packages requirements/bi.json
\
&&
find /opt/noc/
-type
f
-name
"*.py"
-print0
| xargs
-0
python
3
-m
py_compile
\
&&
/usr/bin/cythonize
-i
speedup/
*
.pyx
\
&&
apk del
-r
.build-deps
\
&&
adduser
-h
/opt/noc
-s
/bin/sh
-S
-D
-H
-u
1200 noc
\
...
...
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