Dockerfile 866 B

123456789101112131415161718192021222324252627282930313233
  1. FROM php:7.2-alpine
  2. # postgresql-dev: required for build of pgsql (includes libpq-fe.h)
  3. # zlib-dev: required by zip module
  4. # yarn: called by artisan koel:init to prepare frontend
  5. RUN apk add \
  6. composer \
  7. git \
  8. postgresql-dev \
  9. yarn \
  10. zlib-dev
  11. # TODO check if pgsql may be removed
  12. RUN docker-php-ext-install -j$(nproc) \
  13. exif \
  14. pdo_pgsql \
  15. pgsql \
  16. zip
  17. RUN git clone --branch master --recurse-submodules \
  18. https://github.com/phanan/koel /koel
  19. WORKDIR /koel
  20. # In Encrypter.php line 43:
  21. # The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
  22. RUN sed 's/^APP_KEY=$/APP_KEY=WORKAROUND_000000000000000000000/' .env.example >.env
  23. RUN composer install --no-interaction
  24. # TODO revert workaround
  25. RUN yarn install
  26. # TODO use apache or nginx https://koel.phanan.net/docs/#/?id=manually
  27. CMD ["sh"]