Skip to content
Snippets Groups Projects
Dockerfile.dev 766 B
Newer Older
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
Daniel Schultz's avatar
Daniel Schultz committed
# Prepare for npm
COPY package.json package-lock.json /usr/local/hypha/

# Set owner on /usr/local.
RUN sudo chown -R circleci:circleci /usr/local
# Install node dependencies.
vimal1083's avatar
vimal1083 committed
RUN npm install  --quiet --global 
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"]