Skip to content
Snippets Groups Projects
Commit d30c63a4 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Switch to centos-miniconda3 base image

parent 85889850
No related branches found
No related tags found
No related merge requests found
FROM continuumio/miniconda3:latest FROM registry.esss.lu.se/ics-docker/centos-miniconda3:4.4
RUN groupadd -r ics && useradd -r -g ics ics
USER root
WORKDIR /app WORKDIR /app
RUN chown conda:users /app
USER conda
# Install CSEntry requirements # Install CSEntry requirements
COPY environment.yml /app/environment.yml COPY environment.yml /app/environment.yml
RUN conda config --add channels conda-forge \ RUN conda env create -n csentry -f environment.yml \
&& conda env create -n csentry -f environment.yml \
&& rm -rf /opt/conda/pkgs/* && rm -rf /opt/conda/pkgs/*
# Install the app # Install the app
COPY . /app/ COPY . /app/
RUN chown -R ics:ics /app/*
# activate the csentry environment # activate the csentry environment
ENV PATH /opt/conda/envs/csentry/bin:$PATH ENV PATH /opt/conda/envs/csentry/bin:$PATH
...@@ -59,4 +59,4 @@ test_image: ## run the tests (on the latest image) ...@@ -59,4 +59,4 @@ test_image: ## run the tests (on the latest image)
docker-compose -f docker-compose.yml run --rm web docker-compose -f docker-compose.yml run --rm web
run_uwsgi: ## run the application with uwsgi (to test prod env) run_uwsgi: ## run the application with uwsgi (to test prod env)
docker-compose run -p 8000:8000 --rm web uwsgi --master --http 0.0.0.0:8000 --http-keepalive --manage-script-name --mount /csentry=wsgi.py --callable app --uid ics --processes 2 -b 16384 docker-compose run -p 8000:8000 --rm web uwsgi --master --http 0.0.0.0:8000 --http-keepalive --manage-script-name --mount /csentry=wsgi.py --callable app --uid conda --processes 2 -b 16384
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment