Skip to content
Snippets Groups Projects
Dockerfile.dev 818 B
Newer Older
  • Learn to ignore specific revisions
  • FROM circleci/python:3.7-buster-node
    
    Max Pearl's avatar
    Max Pearl committed
    
    
    # Set work directory
    WORKDIR /usr/local/hypha
    
    Max Pearl's avatar
    Max Pearl committed
    
    
    # Set environment variables
    ENV API_BASE_URL http://apply.hypha.test:8090/api
    ENV DATABASE_URL postgres://hypha:hypha@db:5432/hypha
    ENV DJANGO_SETTINGS_MODULE hypha.settings.dev
    ENV PYTHONDONTWRITEBYTECODE 1
    ENV PYTHONUNBUFFERED 1
    
    
    # Salesforce Integration
    
    ENV SALESFORCE_INTEGRATION 1
    
    # Set owner on /usr/local.
    RUN sudo chown -R circleci:circleci /usr/local
    
    # Install node dependencies.
    COPY package.json package-lock.json /usr/local/hypha/
    RUN npm install  --quiet --global gulp-cli
    RUN npm install  --quiet
    
    # Install python dependencies.
    COPY requirements.txt requirements-dev.txt /usr/local/hypha/
    RUN pip3 install --quiet -r requirements-dev.txt
    
    # Run entrypoint.sh
    ENTRYPOINT ["/usr/local/hypha/docker/entrypoint.dev.sh"]