From c57143c1d3193874521f2c7e0a641f51f2cdcbc8 Mon Sep 17 00:00:00 2001 From: cswimr Date: Wed, 18 Sep 2024 09:04:20 -0400 Subject: [PATCH] added dockerfile for pyflowery --- .forgejo/workflows/build.yaml | 9 ++++++- PyFlowery/Dockerfile | 50 +++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 PyFlowery/Dockerfile diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 27337dc..819ae48 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -8,7 +8,7 @@ on: - cron: '0 0 * * *' jobs: - Build and Push Images: + build: runs-on: docker container: catthehacker/ubuntu:act-latest steps: @@ -43,6 +43,13 @@ jobs: file: ./PyZipline/Dockerfile push: true tags: www.coastalcommits.com/cswimr/actions:pyzipline + - name: BUild and push PyFlowery image + uses: actions/docker-build-push@v5 + with: + context: . + file: ./PyFlowery/Dockerfile + push: true + tags: www.coastalcommits.com/cswimr/actions:pyflowery - name: Build and push SeaCogs image uses: actions/docker-build-push@v5 with: diff --git a/PyFlowery/Dockerfile b/PyFlowery/Dockerfile new file mode 100644 index 0000000..573ceb1 --- /dev/null +++ b/PyFlowery/Dockerfile @@ -0,0 +1,50 @@ +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 +RUN poetry install --with dev --with docs