Dockerfile 617 B

123456789101112131415161718192021222324
  1. FROM php:7.2-alpine
  2. # postgresql-dev: required for build of pgsql (includes libpq-fe.h)
  3. RUN apk add postgresql-dev
  4. # zlib-dev: required by zip module
  5. RUN apk add zlib-dev
  6. RUN docker-php-ext-install -j$(nproc) \
  7. exif \
  8. pgsql \
  9. zip
  10. RUN apk add \
  11. composer \
  12. git
  13. RUN git clone --branch master https://github.com/phanan/koel /koel
  14. WORKDIR /koel
  15. # In Encrypter.php line 43:
  16. # The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
  17. RUN sed 's/^APP_KEY=$/APP_KEY=WORKAROUND_000000000000000000000/' .env.example >.env
  18. RUN composer install --no-interaction
  19. CMD ["sh"]