Skip to content
New issue

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

Error response from daemon: Syntax error - can't find = in "#". Must be of the form: name=value #28

Open
Liblastic opened this issue Dec 7, 2016 · 1 comment

Comments

@Liblastic
Copy link

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

@onnimonni
Copy link

@Liblastic Can you create a pull request instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants