Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
reflectometry
Web Reflectivity
Commits
bcf975f9
Commit
bcf975f9
authored
Jan 07, 2022
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Dockerfile
View file @
bcf975f9
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment