Skip to content
Snippets Groups Projects
Dockerfile.dev 690 B
Newer Older
  • Learn to ignore specific revisions
  • Max Pearl's avatar
    Max Pearl committed
    # pull official base image
    FROM python:3.7.4-alpine
    
    # set work directory
    WORKDIR /usr/src/hypha
    
    # install system dependencies
    RUN apk update \
        && apk add --virtual build-deps gcc python3-dev musl-dev \
        && apk add jpeg-dev zlib-dev build-base linux-headers \
        && apk add postgresql-dev
    
    # npm & Gulp
    RUN apk add --update nodejs-npm
    
    RUN npm install -g gulp-cli
    
    # for testing
    
    Max Pearl's avatar
    Max Pearl committed
    RUN apk add bash procps
    
    
    # copy requirements.txt
    COPY requirements.txt /usr/src/hypha/
    
    # set working directory
    WORKDIR /usr/src/hypha/
    
    Max Pearl's avatar
    Max Pearl committed
    
    # install python dependencies
    RUN pip install -r requirements.txt
    
    RUN apk del build-deps
    
    # run entrypoint.sh
    
    ENTRYPOINT ["/usr/src/hypha/docker/entrypoint.dev.sh"]