diff --git a/.github/workflows/build-push-docker-image.yml b/.github/workflows/build-push-docker-image.yml index 0b56428aa..644f35167 100644 --- a/.github/workflows/build-push-docker-image.yml +++ b/.github/workflows/build-push-docker-image.yml @@ -46,3 +46,13 @@ jobs: ghcr.io/openconext/stepup-middleware/stepup-middleware:prod ghcr.io/openconext/stepup-middleware/stepup-middleware:${{ github.sha }} ghcr.io/openconext/stepup-middleware/stepup-middleware:${{ steps.release.outputs.tag_name }} + + - name: Build and push the Development image + uses: docker/build-push-action@v4 + with: + context: . + file: docker/Dockerfile.dev + platforms: linux/amd64,linux/arm64 + push: true + tags: | + ghcr.io/openconext/stepup-middleware/stepup-middleware:dev diff --git a/docker/Dockerfile.dev b/docker/Dockerfile.dev new file mode 100644 index 000000000..df179d19d --- /dev/null +++ b/docker/Dockerfile.dev @@ -0,0 +1,10 @@ +FROM ghcr.io/openconext/openconext-basecontainers/php72-apache2-node14-composer2:latest + +RUN rm -rf /etc/apache2/sites-enabled/* +COPY ./docker/conf/middleware-apache2.conf /etc/apache2/sites-enabled/middleware.conf +EXPOSE 80 + +# Set the default workdir +WORKDIR /var/www/html + +CMD ["apache2-foreground"] diff --git a/docker/Dockerfile.prod b/docker/Dockerfile.prod index 7666bee16..c8252497f 100644 --- a/docker/Dockerfile.prod +++ b/docker/Dockerfile.prod @@ -5,7 +5,7 @@ RUN tar -xvjf /tmp/*.tar.bz2 -C /var/www/html/ && \ # Add the application configuration files COPY .env .env -COPY config/legacy/parameters.yaml.dist config/legacy/parameters.yaml.dist +COPY config/legacy/parameters.yaml.dist config/legacy/parameters.yaml # Add the config files for Apache2 RUN rm -rf /etc/apache2/sites-enabled/*