|
# Use an official PHP image as the base image |
|
FROM php:7.4-fpm |
|
|
|
# Set environment |
|
ENV |
|
|
|
# Install |
|
RUN |
|
libpng-dev |
|
libjpeg-dev |
|
libfreetype6-dev |
|
libzip-dev |
|
libonig-dev |
|
libxml2-dev |
|
libmcrypt-dev |
|
libcurl4-openssl-dev |
|
libicu-dev |
|
unzip |
|
git |
|
zlib1g-dev |
|
libxslt-dev |
|
&& docker-php-ext-configure |
|
&& docker-php-ext-install |
|
&& pecl |
|
&& docker-php-ext-enable |
|
&& apt-get |
|
&& rm /var//apt//* |
|
|
|
# Install Composer |
|
COPY --from=composer:2 //bin/ /usr//composer |
|
|
|
# Set the working directory |
|
WORKDIR //www |
|
|
|
# Copy the Bagisto application |
|
COPY . //www |
|
|
|
RUN composer create-project bagisto/ |
|
|
|
# Install |
|
RUN |
|
|
|
# Configure |
|
COPY |
|
|
|
# Generate |
|
RUN |
|
|
|
# Run |
|
RUN |
|
RUN |
|
RUN |
|
RUN |
|
RUN |
|
|
|
# Expose |
|
EXPOSE |
|
|
|
# Start |
|
CMD |
|
|