Skip to content

Commit

Permalink
Update Dockerfile (#25)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Update Dockerfile

* Update Dockerfile
  • Loading branch information
sobolevn committed Mar 22, 2024
1 parent b0881bd commit 4d07b30
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM docker:24.0

LABEL maintainer="sobolevn@wemake.services"
LABEL maintainer="mail@sobolevn.me"
LABEL vendor="wemake.services"

ENV PIP_NO_CACHE_DIR=1 \
Expand All @@ -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

0 comments on commit 4d07b30

Please sign in to comment.