parent
7f90c9a150
commit
cf016f312e
14
.docker/hosts/abiball.conf
Normal file
14
.docker/hosts/abiball.conf
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<VirtualHost *:80>
|
||||||
|
DocumentRoot /var/www/html/public
|
||||||
|
DirectoryIndex /index.php
|
||||||
|
|
||||||
|
<Directory /var/www/html/public>
|
||||||
|
AllowOverride All
|
||||||
|
<IfModule mod_rewrite.c>
|
||||||
|
RewriteEngine On
|
||||||
|
</IfModule>
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
ErrorLog /var/log/apache2/project_error.log
|
||||||
|
CustomLog /var/log/apache2/project_access.log combined
|
||||||
|
</VirtualHost>
|
23
.gitea/workflows/build.yaml
Normal file
23
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
name: build
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: remote
|
||||||
|
steps:
|
||||||
|
- uses: https://git.simonis.lol/actions/checkout@v4
|
||||||
|
- uses: https://git.simonis.lol/actions/login@v1
|
||||||
|
with:
|
||||||
|
registry: git.simonis.lol
|
||||||
|
username: ${{ vars.DOCKER_USER }}
|
||||||
|
password: ${{ vars.DOCKER_PW }}
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
run: docker build -t git.simonis.lol/sites/abiball:latest .
|
||||||
|
|
||||||
|
- name: push
|
||||||
|
run: docker push git.simonis.lol/sites/abiball:latest
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
|
/.idea/
|
||||||
###> symfony/framework-bundle ###
|
###> symfony/framework-bundle ###
|
||||||
/.env.local
|
/.env.local
|
||||||
/.env.local.php
|
/.env.local.php
|
||||||
|
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
FROM php:8.2-apache
|
||||||
|
|
||||||
|
COPY . /var/www/html/
|
||||||
|
|
||||||
|
RUN chown -R www-data:www-data /var/www/html
|
||||||
|
|
||||||
|
RUN rm /etc/apache2/sites-enabled/000-default.conf
|
||||||
|
COPY .docker/hosts/abiball.conf /etc/apache2/sites-enabled
|
||||||
|
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -qq -y --no-install-recommends cron nano locales coreutils libicu-dev libpng-dev libxml2-dev libzip-dev libonig-dev libxslt-dev;
|
||||||
|
|
||||||
|
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
|
||||||
|
|
||||||
|
RUN curl -sSk https://getcomposer.org/installer | php -- --disable-tls && \
|
||||||
|
mv composer.phar /usr/local/bin/composer
|
||||||
|
|
||||||
|
RUN docker-php-ext-install pdo pdo_mysql mysqli gd opcache intl zip calendar dom mbstring zip gd xsl && a2enmod rewrite
|
||||||
|
RUN pecl install apcu && docker-php-ext-enable apcu
|
||||||
|
|
||||||
|
WORKDIR /var/www/html
|
||||||
|
RUN composer install --optimize-autoloader --no-suggest --no-progress
|
Loading…
x
Reference in New Issue
Block a user