title: DOCKER COPY not reflected in container
body: <p>Dockerfile does not copy file from gitlab directory. Below is the dockerfile,</p>
  <pre><code>FROM docker.elastic.co/logstash/logstash:7.16.3
  USER root
  
  RUN yum install -y curl dos2unix
  
  COPY scripts/somefile.sh /src/app/
  RUN dos2unix /src/app/somefile.sh
  
  WORKDIR /src/app/
  ENTRYPOINT [&quot;/src/app/somefile.sh&quot;]
  </code></pre>
  <p>The Project tree looks like the following,</p>
  <pre><code>C:.
  ├───.idea
  │   └───codeStyles
  ├───deployment
  │   ├───dev
  └───scripts
  │   ├───somefile.sh
  
  </code></pre>
  <p>below is deployment.yaml</p>
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    labels:
      app: demo-app
    name: demo-app
    namespace: --
  spec:
    replicas: 1
    selector:
      matchLabels:
        app: demo-app
    template:
      metadata:
        labels:
          app: demo-app
      spec:
        containers:
          - image: docker-image-described
            name: demo-app
            resources: ...
            volumeMounts:
              - name: some-secret
                mountPath: /src/abc/secret
                readOnly: true
            securityContext:
              privileged: true
        restartPolicy: Always
        volumes:
          - name: very-secret
            secret:
              secretName: some-secret
  </code></pre>
  <p>Further, building the image using gitlab-ci file. And then creating a deployment using this image. Please help me understand what am I doing wrong as when I exec inside the running pod, I can't see the file in the defined destination location.</p>
  <p>I don't get any errors, which I usually do if there is an error about wrong source location. I also did go through some more similar questions, so I already checked that the EOL is Unix.</p>
  <p>Also, I would like to add some observations,</p>
  <ol>
  <li>I cannot create the directory as well with  <code>RUN mkdir -p /src/app/scripts/</code> This also runs without any error, just not
  reflected inside the pod.</li>
  </ol>