chore: migrate from docker compose to kubernetes deployment
- Replace Docker Compose setup with Kubernetes manifests for deployment - Simplify Dockerfile to use PHP's built-in server instead of nginx+supervisor - Add Makefile with build and deploy commands for local development - Update environment configuration for production deployment - Remove docker-specific configuration files (nginx.conf, supervisord.conf)
This commit is contained in:
25
Dockerfile
25
Dockerfile
@@ -1,25 +1,6 @@
|
||||
FROM php:8.4-fpm
|
||||
|
||||
WORKDIR /var/www
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git curl zip unzip libpng-dev libonig-dev \
|
||||
libxml2-dev nginx supervisor \
|
||||
&& docker-php-ext-install pdo pdo_mysql mbstring exif pcntl bcmath gd
|
||||
|
||||
RUN pecl install redis && docker-php-ext-enable redis
|
||||
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN composer install --no-dev --optimize-autoloader
|
||||
|
||||
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
||||
COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
RUN chown -R www-data:www-data /var/www/storage /var/www/bootstrap/cache
|
||||
RUN chmod -R 775 /var/www/storage /var/www/bootstrap/cache
|
||||
|
||||
EXPOSE 80
|
||||
CMD ["/usr/bin/supervisord"]
|
||||
CMD ["php", "artisan", "serve", "--host=0.0.0.0", "--port=8000"]
|
||||
|
||||
Reference in New Issue
Block a user