2022-03-13 21:09:50 +01:00
|
|
|
FROM php:8.1-fpm-alpine
|
|
|
|
|
|
|
|
RUN docker-php-ext-install pdo pdo_mysql sockets
|
|
|
|
RUN curl -sS https://getcomposer.org/installer | php -- \
|
|
|
|
--install-dir=/usr/local/bin --filename=composer
|
|
|
|
|
|
|
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
2022-03-14 07:19:11 +01:00
|
|
|
RUN composer install
|
2022-03-13 21:09:50 +01:00
|
|
|
|
2022-03-14 07:19:11 +01:00
|
|
|
ENV APP_ENV production
|
2022-03-13 21:09:50 +01:00
|
|
|
ENTRYPOINT ["/app/run.sh"]
|