title: How to create the directory in a Dockerfile
body: <p>I struggle to create a directory in my Dockerfile below. Entering the container after building the image I can't find the directory &quot;models&quot;. &quot;ds&quot; directory in path &quot;/usr/src/app/ds/models&quot; is an application directory which was copied. Could you please tell me what is wrong here.</p>
  <pre><code>FROM python:3.8
  ENV PYTHONUNBUFFERED=1
  ENV DISPLAY :0
  
  WORKDIR /usr/src/app
  COPY . .
  RUN mkdir -p /usr/src/app/ds/models
  </code></pre>
  <p>My docker-compose.yaml file contains volume:</p>
  <pre><code>version: '3.8'
  
  services:
    app:
      build: .
      command:
        - /bin/bash
        - -c
        - python manage.py runserver 0.0.0.0:8000
      restart: always
      volumes:
        - .:/usr/src/app
      ports:
        - '8000:8000'
  </code></pre>