instruction: Create a Dockerfile for Nginx with production best practices
output: ```dockerfile
  from different files and applying patches or other customization to them.ComposingKustomize supports composition of different resources. The resources field, in the kustomization.yaml file,
  defines the list of resources to include in a configuration. Set the path to a resource's configuration file in the resources list.
  Here is an example of an NGINX application comprised of a Deployment and a Service:# Create a deployment.yaml file
  cat <<EOF > deployment.yaml
  apiVersion: apps/v1
  kind: Deployment
  metadata:
   name: my-nginx
  spec:
   selector:
   matchLabels:
   run: my-nginx
   replicas: 2
   template:
   metadata:
   labels:
   run: my-nginx
   spec:
   containers:
   - name: my-nginx
   image: nginx
   ports:
   - containerPort: 80
  EOF
  
  # Create a service.yaml file
  cat <<EOF > service.yaml
  apiVersion: v1
  kind: Service
  metadata:
   name: my-nginx
   labels:
   run: my-nginx
  spec:
   ports:
   - port: 80
   protocol: TCP
   selector:
   run: my-nginx
  EOF
  
  # Create a kustomization.yaml composing them
  cat <<EOF >./kustomization.yaml
  resources:
  - deployment.yaml
  - service.yaml
  EOF
  The resources
  ```