gdev icon indicating copy to clipboard operation
gdev copied to clipboard

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

Open Liblastic opened this issue 9 years ago • 1 comments

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

Liblastic avatar Dec 07 '16 14:12 Liblastic

@Liblastic Can you create a pull request instead?

onnimonni avatar Dec 07 '16 15:12 onnimonni