mirror of
https://github.com/NyaaStudios/nyaabooru.git
synced 2025-12-09 21:42:57 +00:00
26 lines
599 B
Docker
26 lines
599 B
Docker
FROM dunglas/frankenphp
|
|
|
|
# Copy php.ini
|
|
COPY ./deploy/php.ini $PHP_INI_DIR/php.ini
|
|
|
|
RUN apt update -y && apt install -y git nodejs npm
|
|
COPY --from=composer:lts /usr/bin/composer /usr/bin/composer
|
|
|
|
RUN install-php-extensions \
|
|
gd \
|
|
opcache \
|
|
redis \
|
|
mongodb \
|
|
pcntl \
|
|
gmp \
|
|
zip
|
|
|
|
COPY . /app
|
|
|
|
RUN cp .env.example .env
|
|
RUN sed -i'' -e 's/^APP_ENV=.*/APP_ENV=production/' -e 's/^APP_DEBUG=.*/APP_DEBUG=false/' .env
|
|
|
|
RUN composer install --ignore-platform-reqs --no-dev -a
|
|
RUN npm install && npm run build
|
|
|
|
ENTRYPOINT ["php", "artisan", "octane:frankenphp", "--host=0.0.0.0"]
|