-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile.core
34 lines (24 loc) · 970 Bytes
/
Dockerfile.core
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM continuumio/miniconda3 as build
RUN apt-get update && apt-get install -y libarchive13
COPY environment.yml ./
RUN conda install mamba -c conda-forge
RUN mamba env create -f environment.yml
ENV PATH /opt/conda/envs/ecpoint_calibrate/bin:$PATH
ENV PYTHONPATH /app:$PYTHONPATH
ENV PIPENV_VENV_IN_PROJECT=1
ENV ECCODES_DEFINITION_PATH /opt/conda/share/eccodes/definitions
ENV PYTHONUNBUFFERED 1
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
wait-for-it \
fonts-arkpandora
RUN rm -rf /root/* /tmp/* /var/cache/apt/archives/*.deb /var/lib/apt/lists/*
WORKDIR /app
COPY Pipfile Pipfile.lock ./
# so ecmwflibs can find eccodes.h
ENV CPLUS_INCLUDE_PATH /opt/conda/envs/ecpoint_calibrate/include:$CPLUS_INCLUDE_PATH
# so ecmwflibs can find magics headers
ENV CPLUS_INCLUDE_PATH /opt/conda/envs/ecpoint_calibrate/include/magics:$CPLUS_INCLUDE_PATH
RUN pipenv sync
COPY core core/
CMD [ "pipenv", "run", "server" ]