Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile #25

Merged
merged 3 commits into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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="[email protected]"
LABEL maintainer="[email protected]"
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