Dockerfile 863 B

1234567891011121314151617181920212223242526272829303132
  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. # TODO check if postgresql-dev may be removed
  6. RUN apk add \
  7. composer \
  8. git \
  9. postgresql-dev \
  10. yarn \
  11. zlib-dev
  12. RUN docker-php-ext-install -j$(nproc) \
  13. exif \
  14. pdo_pgsql \
  15. zip
  16. RUN git clone --branch master --recurse-submodules \
  17. https://github.com/phanan/koel /koel
  18. WORKDIR /koel
  19. # In Encrypter.php line 43:
  20. # The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
  21. RUN sed 's/^APP_KEY=$/APP_KEY=WORKAROUND_000000000000000000000/' .env.example >.env
  22. RUN composer install --no-interaction
  23. # TODO revert workaround
  24. RUN yarn install
  25. # TODO use apache or nginx https://koel.phanan.net/docs/#/?id=manually
  26. CMD ["sh"]