forked from Alexey/DAS_2024_1
13 lines
438 B
Docker
13 lines
438 B
Docker
FROM wordpress:latest
|
|
|
|
# Установка WP-CLI
|
|
RUN apt-get update && apt-get install -y less \
|
|
&& curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
|
|
&& chmod +x wp-cli.phar \
|
|
&& mv wp-cli.phar /usr/local/bin/wp
|
|
|
|
# Копируем скрипт entrypoint
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |