I created a GKE cluster and inside it I created single pod with 2 conatiners with this yaml settings.
apiVersion: v1
kind: Pod
metadata:
name: django-nginx
spec:
restartPolicy: Never
volumes:
- name: universal
emptyDir: {}
containers:
- name: nginx
image: nginx
volumeMounts:
- name: universal
mountPath: /app_api
- name: django
image: django
volumeMounts:
- name: universal
mountPath: /app_api
and I'm imposting app code while building image with Dockerfile
, part of which is here
FROM nginx
COPY ./app_api /app_api
but when I connect to container and ls into this directory, it shows no data. I want that code to be copied to that volume. how will it be done??