This commit is contained in:
parent
0b8348274d
commit
b4294d3fad
18
.docker/Dockerfile
Normal file
18
.docker/Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
FROM php:8.2-apache
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -qq -y --no-install-recommends \
|
||||
cron \
|
||||
nano \
|
||||
locales coreutils apt-utils git libicu-dev g++ 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-configure intl
|
||||
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
|
10
.docker/compose.yml
Normal file
10
.docker/compose.yml
Normal file
@ -0,0 +1,10 @@
|
||||
services:
|
||||
file-explorer:
|
||||
build: .
|
||||
container_name: file-explorer
|
||||
ports:
|
||||
- "8080:80"
|
||||
volumes:
|
||||
- ./hosts:/etc/apache2/sites-enabled
|
||||
- ../:/var/www/project
|
||||
restart: unless-stopped
|
18
.docker/hosts/file-explorer.conf
Normal file
18
.docker/hosts/file-explorer.conf
Normal file
@ -0,0 +1,18 @@
|
||||
<VirtualHost *:80>
|
||||
ServerName localhost
|
||||
|
||||
DocumentRoot /var/www/project/public
|
||||
DirectoryIndex /index.php
|
||||
|
||||
<Directory /var/www/project/public>
|
||||
AllowOverride None
|
||||
Order Allow,Deny
|
||||
Allow from All
|
||||
</Directory>
|
||||
|
||||
# <Directory /var/www/project/public/bundles>
|
||||
# FallbackResource disabled
|
||||
# </Directory>
|
||||
ErrorLog /var/log/apache2/project_error.log
|
||||
CustomLog /var/log/apache2/project_access.log combined
|
||||
</VirtualHost>
|
14
.gitea/workflows/build.yaml
Normal file
14
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
name: build
|
||||
on: push
|
||||
# pull_request:
|
||||
# types:
|
||||
# - closed
|
||||
# branches:
|
||||
# - main
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: debian-latest
|
||||
steps:
|
||||
- name: test
|
||||
run: echo "test"
|
||||
|
Loading…
x
Reference in New Issue
Block a user