fix docker build
SQLAlchemy 1.4 uses greenlet, which needs to be built from source on Alpine.
This commit is contained in:
parent
32bbfe881b
commit
146e6ff6b8
1 changed files with 7 additions and 1 deletions
|
|
@ -11,7 +11,13 @@ WORKDIR /var/app
|
||||||
|
|
||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
|
|
||||||
RUN pip install --no-cache-dir --upgrade --requirement requirements.txt
|
# Required to build greenlet on Alpine, dependency of SQLAlchemy 1.4.
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
--virtual .build-deps \
|
||||||
|
g++ gcc musl-dev \
|
||||||
|
&& pip install --no-cache-dir --upgrade \
|
||||||
|
--requirement requirements.txt \
|
||||||
|
&& apk del .build-deps
|
||||||
|
|
||||||
USER 10000:10001
|
USER 10000:10001
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue