-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
13 lines (13 loc) · 949 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM bitnami/wordpress-nginx:latest
LABEL org.opencontainers.image.source https://github.com/shesselink81/wordpress-nginx
LABEL org.opencontainers.image.description "Custom wordpress 6.3.0 image with php 8.2, nginx, memcached"
USER 0
RUN install_packages nano wget
COPY ./updraftplus.zip /updraftplus.zip
COPY bitnami /opt/bitnami
COPY certs /certs
COPY ./default-https-server-block.conf /opt/bitnami/nginx/conf/server_blocks/default-https-server-block.conf
RUN chown -R 1001:root /certs && chown -R 1001:root /opt/bitnami/php && chown -R 1001:root /opt/bitnami/nginx && chown 1001:root /opt/bitnami/wordpress/wp-content && chown 1001:root /opt/bitnami/wordpress/wp-config.php && chown 1001:root /usr/local/share/ca-certificates/ && chown 1001:root /etc/ssl/certs/ && rm -r -d -f /opt/bitnami/wordpress/wp-content/uploads/*
EXPOSE 8080 8443
USER 1001
RUN chmod 755 /opt/bitnami/wordpress/wp-content && chmod 770 /opt/bitnami/wordpress/wp-config.php