Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • make_oidc_aud_configurable
  • 187_fix_agnpy
  • helm-chart
  • esap-general#159
  • nico-reviewing-async
  • feature/update-uws-auth
  • SDC-596/fix-internal-server-no-datasets
  • fix-query-errors
  • feature/ida-dekstop-records
  • merge-master
  • feature/better_logs_and_mocks
  • adex-settings-to-configuration
  • astron-vo-quick-fix
  • 69_add_diracIAM
  • sdc380-aladin-cone-search
  • esap-gateway-query
  • esap-general#11
  • esap-general#51
  • esap-api-dirac
  • esap-gateway-release-0_2_0
  • esap-gateway-release_0_1_1
  • esap-gateway-release_0_1_0
23 results

Dockerfile

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Dockerfile 829 B
    FROM python:3.6.7-slim
    RUN apt-get update && apt-get install --no-install-recommends -y bash nano mc
    # RUN apk update && apk add gcc bash nano mc linux-headers musl-dev alpine-sdk openssl-dev libffi-dev
    
    RUN mkdir /src
    WORKDIR /src
    COPY . /src/
    
    RUN pip install --upgrade pip  "cython==0.29.14"
    RUN pip install cryptography
    RUN pip install -r requirements/prod.txt
    RUN exec python manage.py collectstatic --settings=esap.settings.statics --no-input
    
    CMD exec gunicorn esap.wsgi_docker:application --bind 0.0.0.0:8000 --workers 3
    
    # build the image like this:
    # docker build -t esap_api:latest .
    
    # run the container from 'shared', like this:
    # docker run -d --name esap_api --mount type=bind,source=/data/shared,target=/shared -p 8005:8000 --restart always esap_api:latest
    
    # log into the container
    # docker exec -it esap_api sh