mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Refactored docker logic
This commit is contained in:
15
roles/docker-wordpress/templates/Dockerfile.j2
Normal file
15
roles/docker-wordpress/templates/Dockerfile.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM wordpress:{{applications[application_id].version}}
|
||||
|
||||
# Install msmtp and update system
|
||||
RUN apt-get update && \
|
||||
apt-get install -y msmtp msmtp-mta && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install WP CLI
|
||||
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
|
||||
chmod +x wp-cli.phar && \
|
||||
mv wp-cli.phar /usr/local/bin/wp
|
||||
|
||||
# Copy msmtp configuration and PHP upload settings
|
||||
COPY config/msmtprc.conf /etc/msmtprc
|
||||
COPY upload.ini $PHP_INI_DIR/conf.d/
|
Reference in New Issue
Block a user