Deploy Nginx and Phpfpm on Kubernetes

Hello guys,
@player001 @andrescaroc
the question for this task is a bit misleading.
the question specifies Docker images, that means I dont need to create my own Dockerfile.
but then the containers failed to start (Back-off restarting failed container) and the logs shows:
thor@jump_host /$ kubectl logs “nginx-phpfpm” -c “nginx-container”
/ /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/ Looking for shell scripts in /docker-entrypoint.d/
/ Launching /docker-entrypoint.d/ Getting the checksum of /etc/nginx/conf.d/default.conf Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
/ Launching /docker-entrypoint.d/
/ Configuration complete; ready for start up
2020/08/29 14:44:58 [emerg] 1#1: “server” directive is not allowed here in /etc/nginx/nginx.conf:1
nginx: [emerg] “server” directive is not allowed here in /etc/nginx/nginx.conf:1

any ideas what am I missing here?

All good I found the fix. my nginx.conf was missing event and http sections.