diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml new file mode 100644 index 0000000..85b3a84 --- /dev/null +++ b/.forgejo/workflows/test.yaml @@ -0,0 +1,18 @@ +name: Build +run-name: ${{ gitea.actor }} Builder +on: + push: + branches: + - main + +jobs: + hello_world_job: + runs-on: docker + name: A job to say hello + steps: + - uses: actions/checkout@v4 + - name: ls + run: ls -lisa + - name: Hello world action step + id: build-container + run: docker build -t franky -f podman/Containerfile . diff --git a/podman/Containerfile b/podman/Containerfile index 958977c..b30f2c0 100644 --- a/podman/Containerfile +++ b/podman/Containerfile @@ -1,5 +1,35 @@ FROM dunglas/frankenphp +RUN install-php-extensions \ + intl \ + zip \ + opcache + + +ENV FRANKENPHP_CONFIG="worker ./public/index.php" +ENV APP_ENV=prod +ENV APP_DEBUG=0 + +WORKDIR /app + +COPY ../assets ./assets +COPY ../public ./public +COPY ../bin ./bin +COPY ../config ./config +COPY ../migrations ./migrations +COPY ../src ./src +COPY ../templates ./templates +COPY ../.env ./.env +COPY ../composer.json ./composer.json +COPY ../composer.lock ./composer.lock +COPY ../importmap.php ./importmap.php +COPY ../symfony.lock ./symfony.lock + +COPY --from=composer /usr/bin/composer /usr/bin/composer + +RUN composer install --no-dev --optimize-autoloader +RUN rm /usr/bin/composer + ARG USER=appuser RUN \ @@ -11,3 +41,6 @@ RUN \ chown -R ${USER}:${USER} /data/caddy && chown -R ${USER}:${USER} /config/caddy USER ${USER} + +RUN ls -lisa . + diff --git a/src/Entity/PropertyChangeLog.php b/src/Entity/PropertyChangeLog.php index f444baf..a9a2316 100644 --- a/src/Entity/PropertyChangeLog.php +++ b/src/Entity/PropertyChangeLog.php @@ -14,7 +14,7 @@ use Doctrine\ORM\Mapping\Table; #[Entity(repositoryClass: PropertyChangeLogRepository::class)] #[Table(name: 'property_change_log')] -final class PropertyChangeLog +class PropertyChangeLog { #[Id] #[GeneratedValue]