PVC going empty after pod initialisation time

I am trying to setup deployment with PVC

FROM python:3.5 AS python-build
ADD . /test
WORKDIR /test
CMD [ "python3", "./run.py" ]


apiVersion: apps/v1beta2
kind: Deployment
metadata:
  name: test-core
  labels:
    app: test-core
spec:
  selector:
    matchLabels:
      app: test-core
      tier: frontend
  strategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: test-core
        tier: frontend
    spec:
      containers:
      - image: <My image>
        securityContext:
          privileged: true
          runAsUser: 1000
        resources:
          requests:
            memory: "128Mi"
            cpu: .05
          limits:
            memory: "256Mi"
            cpu: .10
        name: test-core
        ports:
        - containerPort: 9595
          name: http
        - containerPort: 443
          name: https
        readinessProbe:
            httpGet:
              path: /
              port: 9595
            initialDelaySeconds: 5
            periodSeconds: 3
            timeoutSeconds: 3
            successThreshold: 1
            failureThreshold: 4
        envFrom:
        - secretRef:
            name: test-secret
        - configMapRef:
            name: test-new-configmap
        volumeMounts:
        - name: core-data
          mountPath: /test
        imagePullPolicy: Always
      volumes:
      - name: core-data
        persistentVolumeClaim:
          claimName: core-claim

When i apply this file from kubernetes it’s giving an error in the log cannot find file run.py that mean PVC going eampty.

Thanks

Source: StackOverflow