Skip to content

Commit

Permalink
dependencies for curlconverter
Browse files Browse the repository at this point in the history
  • Loading branch information
kudj committed Oct 17, 2024
1 parent ae60ac3 commit 21e0b9c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion python-sync-actions/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,17 @@ COPY /tests /code/tests/
COPY requirements.txt /code/requirements.txt
COPY flake8.cfg /code/flake8.cfg

# Add Debian bullseye-backports repository for newer gcc/g++
RUN echo "deb http://deb.debian.org/debian bullseye-backports main" > /etc/apt/sources.list.d/backports.list

# install gcc to be able to build packages - e.g. required by regex, dateparser, also required for pandas
RUN apt-get update && apt-get install -y build-essential curl
# Update and install gcc-12 and g++-12 from backports
RUN apt-get update && apt-get install -y -t bullseye-backports build-essential curl gcc-12 g++-12

# Set gcc-12 and g++-12 as the default compilers
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12 \
&& update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12


# Install curlconverter using npm
RUN npm install --global curlconverter
Expand Down

0 comments on commit 21e0b9c

Please sign in to comment.