We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FROM devgeniem/wordpress-server:php7.0
ENV PORT=8080 FLYNN_PROCESS_TYPE='WEB' WP_UID=10000 WP_GID=10001 BASIC_AUTH_USER=test BASIC_AUTH_PASSWORD_HASH='{PLAIN}test'
RUN rm -f /etc/cont-init.d/01-create-web-user && rm -f /etc/cont-init.d/01-init-web && addgroup web -S -g $WP_GID && adduser wordpress -S -G web -u $WP_UID
COPY web/*.php /var/www/project/web/
COPY web/wp /var/www/project/web/wp
COPY scripts /var/www/project/scripts
COPY phinx.yml /var/www/project/phinx.yml
COPY db /var/www/project/db
COPY nginx /var/www/project/nginx
COPY config /var/www/project/config
COPY vendor /var/www/project/vendor
COPY tasks.cron /var/www/project/
COPY web/app/*.php /var/www/project/web/app/ COPY web/app/languages /var/www/project/web/app/languages COPY web/app/mu-plugins /var/www/project/web/app/mu-plugins COPY web/app/plugins /var/www/project/web/app/plugins COPY web/app/themes /var/www/project/web/app/themes
The text was updated successfully, but these errors were encountered:
@Liblastic Can you create a pull request instead?
Sorry, something went wrong.
No branches or pull requests
This is for production docker image
FROM devgeniem/wordpress-server:php7.0
Use port 8080 for flynn/router
Use these uid/gid in production by default and these can be changed when needed
ENV PORT=8080
FLYNN_PROCESS_TYPE='WEB'
WP_UID=10000
WP_GID=10001
BASIC_AUTH_USER=test
BASIC_AUTH_PASSWORD_HASH='{PLAIN}test'
Skip dynamic user creation and
create user with ID WP_UID/WP_GID here for nginx/php-fpm
RUN rm -f /etc/cont-init.d/01-create-web-user
&& rm -f /etc/cont-init.d/01-init-web
&& addgroup web -S -g $WP_GID
&& adduser wordpress -S -G web -u $WP_UID
Install things in certain order to allow better caching
Stuff that changes only rarely should be prioritized first
Install web root files
COPY web/*.php /var/www/project/web/
Install wp core
COPY web/wp /var/www/project/web/wp
Install scripts
COPY scripts /var/www/project/scripts
Install database migration config
COPY phinx.yml /var/www/project/phinx.yml
Install database migrations and seeds
COPY db /var/www/project/db
Install nginx configs
COPY nginx /var/www/project/nginx
Install application config
COPY config /var/www/project/config
Install vendor
COPY vendor /var/www/project/vendor
Install cronjobs
COPY tasks.cron /var/www/project/
Install wp-content
COPY web/app/*.php /var/www/project/web/app/
COPY web/app/languages /var/www/project/web/app/languages
COPY web/app/mu-plugins /var/www/project/web/app/mu-plugins
COPY web/app/plugins /var/www/project/web/app/plugins
COPY web/app/themes /var/www/project/web/app/themes
The text was updated successfully, but these errors were encountered: