Custom Backend OSPRO Surveyor Indonesia
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.1 KiB

FROM php:7.4-fpm-alpine
RUN apk add --update libzip-dev curl-dev &&\
2 years ago
apk del gcc g++
RUN apk add --no-cache \
2 years ago
zlib-dev \
icu-dev \
libpng-dev \
oniguruma-dev \
libpq-dev \
libpng-dev \
libzip-dev \
zip \
vim \
unzip \
git \
curl
3 years ago
RUN rm -rf /var/cache/apk/*
RUN docker-php-ext-install \
2 years ago
curl \
mbstring \
intl \
pdo \
pdo_pgsql \
pgsql \
tokenizer
# Copy php.ini to the container
COPY /docker/php/php.ini /usr/local/etc/php/
2 years ago
#Install Extensions
RUN docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql
#RUN composer config -g repo.packagist composer https://packagist.org
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
3 years ago
WORKDIR /var/www/html
COPY . .
RUN chmod +x artisan
RUN composer update
RUN composer install --prefer-dist --no-scripts --no-progress --no-interaction --no-dev --no-autoloader
2 years ago
RUN composer dump-autoload --optimize
3 years ago
RUN chown -R www-data:www-data .
WORKDIR /home/www-data
USER www-data