Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
petitminion
funkwhale
Commits
0217b5a7
Verified
Commit
0217b5a7
authored
Dec 13, 2021
by
Georg Krause
Browse files
Try to avoid build of cryptography for docker
parent
d007eafe
Changes
2
Hide whitespace changes
Inline
Side-by-side
api/Dockerfile
View file @
0217b5a7
...
...
@@ -9,6 +9,7 @@ RUN \
postgresql-dev
\
python3-dev
\
py3-psycopg2
\
py3-cryptography
\
libldap
\
libffi-dev
\
make
\
...
...
@@ -23,7 +24,7 @@ RUN \
ln
-s
/usr/bin/python3 /usr/bin/python
# create virtual env for next stage
RUN
python
-m
venv /venv
RUN
python
-m
venv
--system-site-packages
/venv
# emulate activation by prefixing PATH
ENV
PATH="/venv/bin:$PATH" VIRTUAL_ENV=/venv
...
...
@@ -60,6 +61,7 @@ RUN apk add --no-cache \
libpq
\
libxml2
\
libxslt
\
py3-cryptography
\
&&
\
ln
-s
/usr/bin/python3 /usr/bin/python
...
...
api/requirements/base.txt
View file @
0217b5a7
...
...
@@ -41,7 +41,7 @@ channels_redis~=3.3.0
uvicorn[standard]~=0.14.0
gunicorn~=20.1.0
cryptography
~=3.4.7
cryptography
=>3.3.2
# requests-http-signature==0.0.3
# clone until the branch is merged and released upstream
git+https://github.com/agateblue/requests-http-signature.git@signature-header-support
...
...
Write
Preview
Supports
Markdown
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