diff --git a/.gitea/workflows/build_push.yaml b/.gitea/workflows/build_push.yaml new file mode 100644 index 0000000..5871acf --- /dev/null +++ b/.gitea/workflows/build_push.yaml @@ -0,0 +1,29 @@ +name: Build and Publish Docker Image + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + docker: + runs-on: ubuntu-latest-intranet + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: gitea.psi.ch + username: ${{ github.repository_owner }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: gitea.psi.ch/${{ github.repository }}:latest + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e20f433 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM php:8.2-apache + +# Install dependencies +RUN apt-get update && apt-get install -y \ + bc \ + gawk \ + sed \ + bash \ + && rm -rf /var/lib/apt/lists/* + +# Enable CGI module +RUN a2enmod cgi rewrite + diff --git a/README.md b/README.md index b01edb8..2a88733 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ # php-apache - +PHP Image for all Apps deployed on ispd. Enable and install what ever you need in the Dockerfile and rebuild the image.