Skip to content

Commit 131b8cf

Browse files
committed
Initial commit
0 parents  commit 131b8cf

20 files changed

+1775
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
vendor/
2+
database/*.sqlite
3+
database/*.sqlite-*

Dockerfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM php:8.4-alpine
2+
3+
# Install system dependencies
4+
RUN apk add --no-cache \
5+
git \
6+
zip \
7+
unzip
8+
9+
# Install PHP extensions
10+
RUN docker-php-ext-install pdo_sqlite
11+
12+
# Install Composer
13+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
14+
15+
# Set working directory
16+
WORKDIR /var/www
17+
18+
# Copy application files
19+
COPY . .
20+
21+
# Install dependencies
22+
RUN composer install --no-dev --optimize-autoloader --no-interaction
23+
24+
# Set permissions
25+
RUN chown -R www-data:www-data /var/www
26+
RUN chmod -R 755 /var/www
27+
28+
# Expose port
29+
EXPOSE 8080
30+
31+
# Start PHP built-in server
32+
CMD ["php", "-S", "0.0.0.0:8080", "-t", "public/index.php"]

composer.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"require": {
3+
"clue/framework-x": "^0.17",
4+
"clue/reactphp-sqlite": "^1.7"
5+
},
6+
"autoload": {
7+
"psr-4": {
8+
"App\\": "src/"
9+
},
10+
"files": [
11+
"helpers.php"
12+
]
13+
}
14+
}

0 commit comments

Comments
 (0)