Skip to content
Snippets Groups Projects
Select Git revision
  • 4d18481feb82df5148ceac0a516f60e3ab160734
  • master default protected
  • dev
  • install
  • new_master
  • protein_ortho
  • documentation
  • pr18
  • dev-licence
  • docker
  • prodigal_train
  • containers
  • module_all
  • functional_tests
  • opti
  • helpers
  • v1.4.1
  • v1.4.0
  • v1.3.1
  • v1.3.0
  • v1.2.0
  • v1.1.0
  • v1.0.1
  • v1.0
24 results

4-Corepers.sh

Blame
  • Dockerfile 806 B
    # https://docs.docker.com/engine/reference/builder/
    # FROM refer the image where we start from
    # Here we will use a basic python 3 debian image
    
    FROM python:3
    
    # Use the RUN command to pass command to be run
    # Here we update the image and add python3 virtualenv
    
    RUN apt-get update && apt-get upgrade -y && apt-get install \
      -y --no-install-recommends python3
    
    # Install pip dependencies
    ADD requirements.txt /app/requirements.txt
    RUN pip install --default-timeout=100 --upgrade pip && pip install -r /app/requirements.txt
    
    # We add the current content of the git repo in the /app directory
    ADD . /app
    
    # We use the CMD command to start the gunicorn daemon
    # when we start the container.
    # Note the $PORT variable, we will need to define it when we start the container
    CMD gunicorn -b :$PORT mysite.wsgi