title: How to add relative paths and how to mount volumes in a container with Podman
body: <p>I'd like to build a container using Podman which would contains the following:</p>
  <ul>
  <li>a Python application</li>
  <li>the Python modules I developed but which are not stored at the same place than the Python application</li>
  <li>the Python environment (made with miniconda/mambaforge)</li>
  <li>a mounted folder for input data</li>
  <li>a mounted folder for output data</li>
  </ul>
  <p>To do that, I've added a Dockerfile in my home directory. I had to put the Dockerfile at a such high path level because it seems that it needs to be above any folder I want to add in the container. Indeed, I've tried to add folders using rising path with &quot;../../some/path/&quot; but it doesn't work. Then, a first question is: <strong>Is there a solution to add folders which are not below (in path) the Dockerfile?</strong></p>
  <p>Below is the content of the Dockerfile:</p>
  <pre><code>FROM python:3
  
  # Add the Python application
  ADD /path/to/my_python_app /my_python_app
  
  # Add the Python modules used by the Python application
  ADD /path/to/my_modules /my_modules
  
  # Add the whole mambaforge folder (contains the virtual envs) with the exact same path than the local one
  ADD /path/to/mambaforge /exact/same/path/to/mambaforge
  
  # Create a customized .bashrc (contains 'export PATH' to add mamba path and 'export PYTHONPATH' to add my_modules path)
  ADD Dockerfile_bashrc /root/.bashrc
  </code></pre>
  <p>Then, I build the container with:</p>
  <pre><code>podman build -t python_app .
  </code></pre>
  <p>And run it with:</p>
  <pre><code>podman run -i -t python_app -v /path/to/input/data:/mnt/input -v /path/to/output/data:/mnt/output /bin/bash
  </code></pre>
  <p>The container runs correctly and I can execute my Python application into. However, the volumes do not appear in /mnt. A second question is: <strong>How to mount volumes in a container?</strong> I've tried with '--volume' and '--mount', with '/path/to/input/data:/mnt/input:z' and '/path/to/input/data:/mnt/input:Z', but nothing works.</p>
  <p>Many thanks for your help!</p>