-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (19 loc) · 861 Bytes
/
Dockerfile
File metadata and controls
22 lines (19 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
###############################################################################
# Build step to gather plugins and themes
###############################################################################
FROM alpine:3.18 as build
# Setup dependencies for download script.
RUN apk add --no-cache git
RUN apk add --no-cache python3-dev
# Run download script.
WORKDIR /var/wp
COPY env_setup.py /var/wp/env_setup.py
COPY config.json /var/wp/config.json
RUN --mount=type=secret,id=GITHUB_TOKEN \
python3 env_setup.py
###############################################################################
# Build final container
###############################################################################
FROM terabytetribune/wordpress:latest
COPY --from=build /var/wp/themes /var/www/wp-content/themes
COPY --from=build /var/wp/plugins /var/www/wp-content/plugins