title: Docker python output csv file
body: <p>I have a script python which should output a file csv. I'm trying to have this file in the current working directory but without success.</p>
  <p>This is my Dockerfile</p>
  <pre><code>FROM python:3.6.4
  
  RUN apt-get update &amp;&amp; apt-get install -y libaio1 wget unzip
  
  WORKDIR /opt/oracle 
  RUN wget https://download.oracle.com/otn_software/linux/instantclient/instantclient- 
  basiclite-linuxx64.zip &amp;&amp; \ unzip instantclient-basiclite-linuxx64.zip &amp;&amp; rm 
  -f instantclient-basiclite-linuxx64.zip &amp;&amp; \ cd /opt/oracle/instantclient* 
  &amp;&amp; rm -f jdbc occi mysql *README jar uidrvci genezi adrci &amp;&amp; \ echo 
  /opt/oracle/instantclient &gt; /etc/ld.so.conf.d/oracle-instantclient.conf &amp;&amp; 
  ldconfig 
  RUN pip install --upgrade pip
  
  COPY . /app 
  WORKDIR /app
  
  RUN pip install --upgrade pip 
  RUN pip install pystan 
  RUN apt-get -y update &amp;&amp; python3 -m pip install cx_Oracle --upgrade 
  RUN pip install -r requirements.txt
  
  CMD [ &quot;python&quot;, &quot;Main.py&quot; ]
  </code></pre>
  <p>And run the container with the following command</p>
  <pre><code>docker container run -v $pwd:/home/learn/rstudio_script/output image
  </code></pre>