instruction: Create a Dockerfile for Python with production best practices
output: ```dockerfile
  from inadvertently succeeding. For example:
  
  RUN set -o pipefail && wget -O - https://some.site | wc -l > /number
  NoteNot all shells support the -o pipefail option.In cases such as the dash shell on
  Debian-based images, consider using the exec form of RUN to explicitly
  choose a shell that does support the pipefail option. For example:
  
  RUN ["/bin/bash", "-c", "set -o pipefail && wget -O - https://some.site | wc -l > /number"]CMDThe CMD instruction should be used to run the software contained in your
  image, along with any arguments. CMD should almost always be used in the form
  of CMD ["executable", "param1", "param2"]. Thus, if the image is for a
  service, such as Apache and Rails, you would run something like CMD ["apache2","-DFOREGROUND"]. Indeed, this form of the instruction is recommended
  for any service-based image.In most other cases, CMD should be given an interactive shell, such as bash,
  Python and perl. For example, CMD ["perl", "-de0"], CMD ["python"], or CMD ["php", "-a"]. Using this form means that when you execute something like
  docker run -it python, youâll get dropped into a usable shell, ready to go.
  CMD should rarely be used in the manner of CMD ["param", "param"] in
  conjunction with
  ENTRYPOINT, unless
  you and your expected users are already quite familiar with how ENTRYPOINT
  works.For more information about CMD, see
  Dockerfile reference for the CMD instruction.EXPOSEThe EXPOSE instruction indicates the ports on which a container listens
  for connections. Consequently, you should use the common, traditional port for
  your application. For example, an image containing the Apache web server would
  use EXPOSE 80, while an image containing MongoDB would use EXPOSE 27017 and
  so on.For external access, your users can execute docker run with a flag indicating
  how to map the specified port to the port of their choice.
  For container linking, Docker provides environment variables for the path
  ```