From 9a644b81934b49233d5c9428a68a7d56be47b2ad Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sat, 6 Jan 2024 21:56:28 -0500 Subject: [PATCH] added seacogs dockerfile --- .forgejo/workflows/build.yaml | 28 ++++++++++++++++++++++++++++ SeaCogs/Dockerfile | 31 +++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .forgejo/workflows/build.yaml create mode 100644 SeaCogs/Dockerfile diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..0a367df --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,28 @@ +name: Docker Build +on: + push: + branches: + - master + +jobs: + Build: + runs-on: docker + container: catthehacker/ubuntu:act-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + token: ${{ secrets.COASTALCOMMITSTOKEN }} + - name: Login to CoastalCommits + uses: actions/docker-login@v3 + with: + registry: coastalcommits.com + username: SeaswimmerTheFsh + password: ${{ secrets.COASTALCOMMITSTOKEN }} + - name: Build and push SeaCogs Docker image + uses: actions/docker-build-push@v5 + with: + context: . + file: ./SeaCogs/Dockerfile + push: true + tags: coastalcommits.com/seaswimmerthefsh/actionscontainers-seacogs:latest diff --git a/SeaCogs/Dockerfile b/SeaCogs/Dockerfile new file mode 100644 index 0000000..24c35dd --- /dev/null +++ b/SeaCogs/Dockerfile @@ -0,0 +1,31 @@ +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 Python and Node.js + +RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - +RUN apt-get install -y \ + nodejs \ + python3.11 \ + python3.11-dev \ + python3.11-venv + +# Install Poetry + +RUN curl -sSl https://seafsh.cc/go/poetry | python3.11 - + +# Install dependencies + +RUN poetry config virtualenvs.create false +RUN poetry install --with dev --with docs --no-root