2024-09-18 09:04:20 -04:00
|
|
|
FROM catthehacker/ubuntu:act-latest
|
|
|
|
|
|
|
|
# Install APT packages
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y \
|
|
|
|
libcairo2-dev \
|
|
|
|
libfreetype6-dev \
|
|
|
|
libffi-dev \
|
|
|
|
libjpeg-dev \
|
|
|
|
libpng-dev \
|
|
|
|
libz-dev \
|
|
|
|
pngquant
|
|
|
|
|
|
|
|
# Install Nodejs
|
|
|
|
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
|
|
|
|
apt-get install -y nodejs && \
|
|
|
|
node --version
|
|
|
|
|
|
|
|
# Install Meli CLI
|
|
|
|
|
|
|
|
RUN npm install -g @getmeli/cli@1.2.0
|
|
|
|
|
|
|
|
# Set up deadsnakes PPA
|
|
|
|
|
|
|
|
RUN add-apt-repository ppa:deadsnakes/ppa -y
|
|
|
|
|
|
|
|
# Install Python 3.12
|
|
|
|
|
|
|
|
RUN apt-get install -y \
|
|
|
|
python3.12 \
|
|
|
|
python3.12-dev \
|
|
|
|
python3.12-venv \
|
|
|
|
python3.12-distutils
|
|
|
|
RUN python3.12 --version
|
|
|
|
|
|
|
|
# Upgrade pip & setuptools
|
|
|
|
RUN python3.12 -m ensurepip --upgrade
|
|
|
|
RUN python3.12 -m pip install --upgrade setuptools
|
|
|
|
|
|
|
|
# Install Poetry
|
|
|
|
RUN python3.12 -m pip install -U poetry
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
|
|
|
|
RUN python3.12 -m pip install -U click packaging colorama zipp distro importlib-metadata
|
|
|
|
RUN curl -sSL https://www.coastalcommits.com/cswimr/PyFlowery/raw/branch/main/pyproject.toml -o pyproject.toml
|
|
|
|
RUN curl -sSL https://www.coastalcommits.com/cswimr/PyFlowery/raw/branch/main/poetry.lock -o poetry.lock
|
2024-09-18 09:06:02 -04:00
|
|
|
RUN python3.12 -m poetry install --with dev --with docs
|