Commit bcf975f9 authored by Borreguero Calvo, Jose's avatar Borreguero Calvo, Jose
Browse files

Merge branch 'localdev' into 'next'

switch to miniconda image

See merge request !13
parents 97c531c3 4e02a41e
Pipeline #184238 failed with stages
in 2 seconds
FROM code.ornl.gov:4567/rse/images/centos:7
ENV PYTHONUNBUFFERED 1
ENV CFLAGS "-std=c++11"
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_COLLATE C
ENV LC_CTYPE en_US.UTF-8
RUN yum install -y epel-release; \
yum groupinstall -y "development tools"; \
yum install -y yum install -y openldap-devel python3 python3-devel postgresql postgresql-devel; \
yum clean all; rm -rf /var/cache/yum
WORKDIR /var/www/web_reflectivity/app
COPY . .
RUN python3 -m pip install --upgrade pip; \
python3 -m pip install -r requirements.txt
# latest miniconda3 image
FROM continuumio/miniconda3
ENV PYTHONUNBUFFERED 1
ENV CFLAGS "-std=c++11"
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV LC_COLLATE C
ENV LC_CTYPE en_US.UTF-8
# This line will throw error if using an old miniconda3 image.
# To correct, one must build a miniconda3 image while piling all apt-get statements together into one
# https://hub.docker.com/r/continuumio/miniconda3/dockerfile
RUN apt-get update && apt-get install -y postgresql postgresql-contrib
WORKDIR /var/www/web_reflectivity/app
COPY . .
RUN conda install --name base -c conda-forge mamba
RUN mamba env update --name base --file environment.yml
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment