Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Commit

Permalink
use docker to build plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nmarley committed Mar 14, 2017
1 parent 72ffc87 commit e326eeb
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM ubuntu:16.10
MAINTAINER BlackCarrot <dev@blackcarrot.be>
LABEL description="DashPayments for WooCommerce Plugin"

RUN /bin/echo 'set -o vi' >> /etc/profile
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install aptitude vim openssl build-essential zip unzip
RUN apt-get -y install php7.0 php7.0-fpm php7.0-gmp php7.0-bcmath php7.0-gd php7.0-mcrypt php7.0-curl php7.0-json composer php-composer-ca-bundle
RUN rm -fr /var/cache/apt/*

COPY . /dp4wc/dashpay-woocommerce/
WORKDIR /dp4wc

# install deps & check syntax
RUN (cd /dp4wc/dashpay-woocommerce/ && composer install)
RUN (cd /dp4wc/dashpay-woocommerce/ && /bin/bash check.sh)

# remove files not required for plugin
RUN cd /dp4wc/dashpay-woocommerce/ && rm -fr .git* Dockerfile composer* README.md check.sh

RUN zip -r dashpay-woocommerce.zip dashpay-woocommerce/
RUN rm -fr /dp4wc/dashpay-woocommerce/

CMD ["/bin/bash", "--rcfile", "/etc/profile"]

0 comments on commit e326eeb

Please sign in to comment.