diff --git a/python-sync-actions/Dockerfile b/python-sync-actions/Dockerfile index 1e5603c..ec3594c 100644 --- a/python-sync-actions/Dockerfile +++ b/python-sync-actions/Dockerfile @@ -1,14 +1,24 @@ -FROM nikolaik/python-nodejs:python3.12-nodejs18 -ENV PYTHONIOENCODING utf-8 +FROM python:3.12 + +ENV PYTHONIOENCODING=utf-8 + +# Install Node.js 18 +RUN apt-get update && \ + apt-get install -y curl && \ + curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \ + apt-get install -y nodejs + +# Install build essentials +RUN apt-get install -y build-essential + +# Install curlconverter using npm +RUN npm install --global curlconverter COPY /src /code/src/ COPY /tests /code/tests/ COPY requirements.txt /code/requirements.txt COPY flake8.cfg /code/flake8.cfg -# 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 - # Install curlconverter using npm RUN npm install --global curlconverter@4.10.0