-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (18 loc) · 942 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ARG BASE_IMAGE=wordpress:5.6.2
FROM $BASE_IMAGE
ARG WOOCOMMERCE_VERSION=5.0.0
ENV WOOCOMMERCE_VERSION $WOOCOMMERCE_VERSION
RUN apt-get update \
&& apt-get install -y --no-install-recommends unzip wget \
&& wget https://downloads.wordpress.org/plugin/woocommerce.$WOOCOMMERCE_VERSION.zip -O /tmp/temp.zip \
&& cd /usr/src/wordpress/wp-content/plugins \
&& unzip /tmp/temp.zip \
&& rm /tmp/temp.zip \
&& rm -rf /var/lib/apt/lists/*
ENV DOCKERIZE_VERSION v0.6.0
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-alpine-linux-amd64-$DOCKERIZE_VERSION.tar.gz
RUN curl -L "https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar" > /usr/bin/wp && \
chmod +x /usr/bin/wp
VOLUME ["/var/www/html"]