2024-01-15 05:20:39 -05: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
|
|
|
|
|
2024-01-15 05:23:50 -05:00
|
|
|
# Install Python 3.12
|
2024-01-15 05:20:39 -05:00
|
|
|
|
|
|
|
RUN apt-get install -y \
|
|
|
|
python3.12 \
|
|
|
|
python3.12-dev \
|
2024-01-15 05:37:32 -05:00
|
|
|
python3.12-venv \
|
|
|
|
python3.12-distutils
|
2024-01-15 05:20:39 -05:00
|
|
|
RUN python3.12 --version
|
|
|
|
|
|
|
|
# Install Poetry
|
2024-01-15 05:33:11 -05:00
|
|
|
ENV POETRY_HOME="/.poetry"
|
2024-01-15 05:36:39 -05:00
|
|
|
RUN curl -sSL https://seafsh.cc/go/poetry | python3.12 - && /.poetry/bin/poetry --version
|
2024-01-15 05:35:41 -05:00
|
|
|
RUN /.poetry/bin/poetry config virtualenvs.create false
|
2024-01-15 05:20:39 -05:00
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
|
|
|
|
RUN curl -sSL https://coastalcommits.com/SeaswimmerTheFsh/PyZipline/raw/branch/main/pyproject.toml -o pyproject.toml
|
|
|
|
RUN curl -sSL https://coastalcommits.com/SeaswimmerTheFsh/PyZipline/raw/branch/main/poetry.lock -o poetry.lock
|
2024-01-15 05:35:41 -05:00
|
|
|
RUN /.poetry/bin/poetry install --with dev --with docs --no-root
|