Skip to content

Commit

Permalink
feat: Add image build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dinushchathurya committed Dec 26, 2024
1 parent d0efc1b commit 1937a03
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:buster
FROM php:8.1-cli

# Install essential packages
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand All @@ -8,20 +8,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libzip-dev \
zip \
libpq-dev \
mysql-client
default-mysql-client

# Install PHP and extensions (using a single apt-get command)
RUN apt-get update && apt-get install -y --no-install-recommends \
php8.1 \
php8.1-cli \
php8.1-fpm \
php8.1-mysql \
php8.1-pgsql \
php8.1-zip \
php8.1-bcmath \
php8.1-mbstring \
php8.1-xml \
php8.1-gd # Often needed for image processing
# Install additional PHP extensions (if needed)
RUN docker-php-ext-install pdo pdo_mysql pgsql zip bcmath mbstring xml

# Download and install gh-ost (specific version)
WORKDIR /tmp
Expand All @@ -37,14 +27,14 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
# Set working directory for the application
WORKDIR /app

# Copy application files (AFTER setting the working directory)
# Copy application files
COPY . /app

# Set permissions (if needed - adjust for your user/group)
# Set permissions (if needed)
# RUN chown -R www-data:www-data /app/storage /app/bootstrap/cache

# Expose port (if needed)
# EXPOSE 80

# Set default command (if needed)
# CMD ["php-fpm8.1", "-F"]
# CMD ["php-fpm", "-F"]

0 comments on commit 1937a03

Please sign in to comment.