mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
Simplify backend build. Rely on wheels from packages
This commit is contained in:
parent
b433d03090
commit
49396e0678
|
@ -15,7 +15,6 @@ RUN apt-get update -qq && \
|
||||||
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
|
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
python3.12 \
|
python3.12 \
|
||||||
python3.12-dev \
|
|
||||||
libstdc++6 && \
|
libstdc++6 && \
|
||||||
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12 && \
|
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.12 && \
|
||||||
python3.12 -m pip install --upgrade pip && \
|
python3.12 -m pip install --upgrade pip && \
|
||||||
|
@ -32,25 +31,6 @@ FROM python-base as builder
|
||||||
ENV PYTHONDONTWRITEBYTECODE 1
|
ENV PYTHONDONTWRITEBYTECODE 1
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
# Setup additional dev tools
|
|
||||||
RUN apt-get update -qq && \
|
|
||||||
apt-get full-upgrade -y && \
|
|
||||||
apt-get install -y --no-install-recommends \
|
|
||||||
software-properties-common \
|
|
||||||
build-essential && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Add GCC compiler
|
|
||||||
ARG GCC_VER="13"
|
|
||||||
RUN add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
|
|
||||||
apt-get update -qq && \
|
|
||||||
apt-get install -y --no-install-recommends \
|
|
||||||
gcc-${GCC_VER} \
|
|
||||||
g++-${GCC_VER} && \
|
|
||||||
update-alternatives --install /usr/bin/gcc gcc $(which gcc-${GCC_VER}) 100 && \
|
|
||||||
update-alternatives --install /usr/bin/g++ g++ $(which g++-${GCC_VER}) 100 && \
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
COPY ./requirements.txt ./
|
COPY ./requirements.txt ./
|
||||||
RUN python3.12 -m pip wheel \
|
RUN python3.12 -m pip wheel \
|
||||||
--no-cache-dir --no-deps \
|
--no-cache-dir --no-deps \
|
||||||
|
|
|
@ -7,7 +7,7 @@ drf-spectacular==0.27.2
|
||||||
coreapi==2.3.3
|
coreapi==2.3.3
|
||||||
django-rest-passwordreset==1.4.0
|
django-rest-passwordreset==1.4.0
|
||||||
cctext==0.1.3
|
cctext==0.1.3
|
||||||
pyconcept==0.1.1
|
pyconcept==0.1.2
|
||||||
|
|
||||||
psycopg2-binary==2.9.9
|
psycopg2-binary==2.9.9
|
||||||
gunicorn==22.0.0
|
gunicorn==22.0.0
|
Loading…
Reference in New Issue
Block a user