-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathContainerfile.cli
More file actions
45 lines (34 loc) · 1.15 KB
/
Copy pathContainerfile.cli
File metadata and controls
45 lines (34 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
ARG FREEBSD_RELEASE
ARG PHPVER
FROM ghcr.io/appjail-makejails/php:${FREEBSD_RELEASE}-${PHPVER}
ARG PHPVER
ARG NO_PKGCLEAN
LABEL org.opencontainers.image.title="WordPress" \
org.opencontainers.image.description="State-of-the-art semantic personal publishing platform" \
org.opencontainers.image.source="https://github.com/AppJail-makejails/wordpress" \
org.opencontainers.image.url="https://github.com/AppJail-makejails/wordpress" \
org.opencontainers.image.vendor="DtxdF" \
org.opencontainers.image.authors="Jesús Daniel Colmenares Oviedo <dtxdf@disroot.org>"
RUN set -xe; \
\
umask 0022; \
\
pkg update; \
pkg install wp-cli-php${PHPVER} bash; \
\
if [ -z "${NO_PKGCLEAN}" ]; then \
pkg clean -a; \
rm -rf /var/cache/pkg/*; \
fi; \
rm -rf /var/db/pkg/repos/*
RUN mkdir -p /usr/local/www/html; \
chown www:www /usr/local/www/html; \
chmod 755 /usr/local/www/html
COPY entrypoint-cli.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
VOLUME /usr/local/www/html
WORKDIR /usr/local/www/html
ENV WP_CLI_CUSTOM_SHELL=/usr/local/bin/bash
ENTRYPOINT ["/entrypoint.sh"]
USER www
CMD ["wp", "shell"]