Skip to content
Snippets Groups Projects
Dockerfile 584 B
Newer Older
  • Learn to ignore specific revisions
  • Alessandro Cerioni's avatar
    Alessandro Cerioni committed
    
    
    # cf. https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions
    RUN apt update && apt install -y curl gnupg
    
    RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
    
    Alessandro Cerioni's avatar
    Alessandro Cerioni committed
    WORKDIR /app
    COPY requirements.txt .
    
    Alessandro Cerioni's avatar
    Alessandro Cerioni committed
    COPY lib/*.py ./lib/
    
    Alessandro Cerioni's avatar
    Alessandro Cerioni committed
    COPY templates/*.html ./templates/
    COPY api.py .
    COPY main.py .
    
    EXPOSE 8000
    
    
    CMD gunicorn --workers=2 -b 0.0.0.0:8000 --log-level=debug api:api