15 lines
346 B
Docker
15 lines
346 B
Docker
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 . .
|
|
RUN composer install
|
|
|
|
ENV APP_ENV production
|
|
ENTRYPOINT ["/app/run.sh"]
|