Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Add coolify-helper image

Andras Bacsaib7c98104618b
diff --git a/.github/workflows/coolify-helper.yml b/.github/workflows/coolify-helper.yml
new file mode 100644
index 0000000000..6a774effc1
--- /dev/null
+++ b/.github/workflows/coolify-helper.yml
@@ -0,0 +1,80 @@
+name: Coolify Helper Image (v4)
+
+on:
+ push:
+ branches: [ "main", "next" ]
+ paths:
+ - .github/workflows/coolify-helper.yml
+ - docker/coolify-helper/Dockerfile
+
+env:
+ REGISTRY: ghcr.io
+ IMAGE_NAME: "coollabsio/coolify-helper"
+
+jobs:
+ amd64:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+ steps:
+ - uses: actions/checkout@v3
+ - name: Login to ghcr.io
+ uses: docker/login-action@v2
+ with:
+ registry: ${{ env.REGISTRY }}
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ - name: Build image and push to registry
+ uses: docker/build-push-action@v3
+ with:
+ no-cache: true
+ context: .
+ file: docker/coolify-helper/Dockerfile
+ platforms: linux/amd64
+ push: true
+ tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
+ aarch64:
+ runs-on: [ self-hosted, arm64 ]
+ permissions:
+ contents: read
+ packages: write
+ steps:
+ - uses: actions/checkout@v3
+ - name: Login to ghcr.io
+ uses: docker/login-action@v2
+ with:
+ registry: ${{ env.REGISTRY }}
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ - name: Build image and push to registry
+ uses: docker/build-push-action@v3
+ with:
+ no-cache: true
+ context: .
+ file: docker/coolify-helper/Dockerfile
+ platforms: linux/aarch64
+ push: true
+ tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:aarch64
+ merge-manifest:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ packages: write
+ needs: [ amd64, aarch64 ]
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v2
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v2
+ - name: Login to ghcr.io
+ uses: docker/login-action@v2
+ with:
+ registry: ${{ env.REGISTRY }}
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+ - name: Create & publish manifest
+ run: |
+ docker buildx imagetools create --append ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:aarch64 --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
diff --git a/docker/coolify-helper/Dockerfile b/docker/coolify-helper/Dockerfile
new file mode 100644
index 0000000000..9fe9c317fc
--- /dev/null
+++ b/docker/coolify-helper/Dockerfile
@@ -0,0 +1,42 @@
+FROM alpine:3.17
+
+ARG TARGETPLATFORM
+# https://download.docker.com/linux/static/stable/
+ARG DOCKER_VERSION=23.0.6
+# https://github.com/docker/compose/releases
+ARG DOCKER_COMPOSE_VERSION=2.18.1
+# https://github.com/docker/buildx/releases
+ARG DOCKER_BUILDX_VERSION=0.10.5
+# https://github.com/buildpacks/pack/releases
+ARG PACK_VERSION=0.29.0
+# https://github.com/railwayapp/nixpacks/releases
+ARG NIXPACKS_VERSION=1.12.0
+
+USER root
+WORKDIR /artifacts
+RUN apk add --no-cache bash curl git git-lfs openssh-client tar tini
+RUN mkdir -p ~/.docker/cli-plugins
+RUN if [[ ${TARGETPLATFORM} == 'linux/amd64' ]]; then \
+ curl -sSL https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-amd64 -o ~/.docker/cli-plugins/docker-buildx && \
+ curl -sSL https://github.com/docker/compose/releases/download/v${DOCKER_COMPOSE_VERSION}/docker-compose-linux-x86_64 -o ~/.docker/cli-plugins/docker-compose && \
+ (curl -sSL https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}.tgz | tar -C /usr/bin/ --no-same-owner -xzv --strip-components=1 docker/docker) && \
+ (curl -sSL https://github.com/buildpacks/pack/releases/download/v${PACK_VERSION}/pack-v${PACK_VERSION}-linux.tgz | tar -C /usr/local/bin/ --no-same-owner -xzv pack) && \
+ curl -sSL https://nixpacks.com/install.sh | bash && \
+ chmod +x ~/.docker/cli-plugins/docker-compose /usr/bin/docker /usr/local/bin/pack /root/.docker/cli-plugins/docker-buildx \
+ ;fi
+
+RUN if [[ ${TARGETPLATFORM} == 'linux/arm64' ]]; then \
+ curl -sSL https://github.com/docker/buildx/releases/download/v${DOCKER_BUILDX_VERSION}/buildx-v${DOCKER_BUILDX_VERSION}.linux-arm64 -o ~/.docker/cli-plugins/docker-buildx && \
+ curl -sSL https://github.com/docker/compose/releases/download/v${DOCKER_COMPOSE_VERSION}/docker-compose-linux-aarch64 -o ~/.docker/cli-plugins/docker-compose && \
+ (curl -sSL https://download.docker.com/linux/static/stable/aarch64/docker-${DOCKER_VERSION}.tgz | tar -C /usr/bin/ --no-same-owner -xzv --strip-components=1 docker/docker) && \
+ (curl -sSL https://github.com/buildpacks/pack/releases/download/v${PACK_VERSION}/pack-v${PACK_VERSION}-linux-arm64.tgz | tar -C /usr/local/bin/ --no-same-owner -xzv pack) && \
+ curl -sSL https://nixpacks.com/install.sh | bash && \
+ chmod +x ~/.docker/cli-plugins/docker-compose /usr/bin/docker /usr/local/bin/pack /root/.docker/cli-plugins/docker-buildx \
+ ;fi
+
+COPY --from=minio/mc /usr/bin/mc /usr/bin/mc
+RUN chmod +x /usr/bin/mc
+
+ENTRYPOINT ["/sbin/tini", "--"]
+CMD ["sh", "-c", "while true; do sleep 1; done"]
+