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.
33 lines
702 B
33 lines
702 B
3 years ago
|
FROM php:7.4-fpm-alpine
|
||
|
|
||
|
RUN apk add --update --no-cache
|
||
|
RUN apk add \
|
||
|
libpq-dev \
|
||
|
php7-tokenizer \
|
||
|
php7-zip \
|
||
|
php7-curl \
|
||
|
php7-mbstring \
|
||
|
php7-intl \
|
||
|
php7-iconv
|
||
|
RUN docker-php-ext-install pgsql pdo_pgsql
|
||
|
|
||
|
#RUN curl -sS https://getcomposer.org/installer | php -- \
|
||
|
# --install-dir=/usr/bin --filename=composer
|
||
|
|
||
|
ADD https://getcomposer.org/installer ./composer-setup.php
|
||
|
RUN php ./composer-setup.php --install-dir=/usr/local/bin --filename=composer
|
||
|
RUN rm ./composer-setup.php
|
||
|
|
||
|
|
||
|
RUN rm -rf /var/cache/apk/*
|
||
|
|
||
|
COPY . /kit-api
|
||
|
|
||
|
RUN cd "/kit-api" && cp .env.production .env && composer install
|
||
|
|
||
|
WORKDIR /kit-api
|
||
|
|
||
|
EXPOSE 80
|
||
|
|
||
|
CMD php -S 0.0.0.0:80
|