-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Dockerfile * Update Dockerfile * Update Dockerfile
- Loading branch information
Showing
1 changed file
with
4 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FROM docker:24.0 | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL maintainer="[email protected]" | ||
LABEL vendor="wemake.services" | ||
|
||
ENV PIP_NO_CACHE_DIR=1 \ | ||
|
@@ -11,21 +11,16 @@ ENV PIP_NO_CACHE_DIR=1 \ | |
RUN apk update && apk upgrade \ | ||
&& apk add --no-cache \ | ||
# Installing Python: | ||
python3 python3-dev \ | ||
python3 python3-dev py3-pip \ | ||
# Installing build deps: | ||
libffi-dev openssl-dev build-base git curl bash \ | ||
# Installing Rust (latest cryptography requires it): | ||
cargo gcc musl-dev \ | ||
# Installing pip: | ||
&& curl 'https://bootstrap.pypa.io/get-pip.py' -o get-pip.py \ | ||
&& python3 get-pip.py \ | ||
&& rm get-pip.py | ||
cargo gcc musl-dev | ||
|
||
|
||
WORKDIR /build | ||
COPY requirements.txt /build/requirements.txt | ||
|
||
# Installing Python dependencies: | ||
RUN pip3 install -U pip \ | ||
&& pip3 install -r requirements.txt \ | ||
RUN pip3 install -r requirements.txt --break-system-packages \ | ||
&& rm requirements.txt |