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

25 lines
675 B
Docker

FROM php:7.4-apache
ENV COMPOSER_ALLOW_SUPERUSER 1
RUN apt-get update && apt-get install -y \
openssl \
git \
unzip \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
&& composer --version
RUN git clone https://github.com/jikan-me/jikan-rest.git -b v3 . \
&& git checkout v3 \
&& cp .env.dist .env \
&& composer require 'composer/package-versions-deprecated' \
&& composer install --prefer-dist --no-progress --classmap-authoritative --no-interaction \
&& composer update jikan-me/jikan
ADD /run-jikan.sh ./
ENTRYPOINT ["./run-jikan.sh"]
EXPOSE 8080