woocommerce/packages/js/e2e-environment/docker/wp-cli/Dockerfile

19 lines
504 B
Docker
Raw Normal View History

FROM wordpress:cli-2.5.0
USER root
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chown xfs:xfs /usr/local/bin/entrypoint.sh && \
chmod +x /usr/local/bin/entrypoint.sh
RUN chown xfs:xfs /home/www-data
COPY initialize.sh /usr/local/bin/initialize.sh
RUN chown xfs:xfs /usr/local/bin/initialize.sh && \
chmod +x /usr/local/bin/initialize.sh
USER xfs
RUN mkdir /home/www-data/.wp-cli && echo "path: /var/www/html" > /home/www-data/.wp-cli/config.yml
USER root
ENTRYPOINT ["entrypoint.sh"]