forked from tue-bmd/casl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (16 loc) · 745 Bytes
/
Dockerfile
File metadata and controls
20 lines (16 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Inherit from zea base image
FROM zeahub/all:latest
# Install latex and fonts
# https://stackoverflow.com/questions/37920935/matplotlib-cant-find-font-installed-in-my-linux-machine
RUN apt-get update && \
apt-get install -y --no-install-recommends --fix-missing dvipng texlive-latex-extra texlive-fonts-recommended cm-super && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -fr ~/.cache/matplotlib
# Install tf2jax (and reinstall the right keras version)
RUN KERAS_VER=$(python3 -c "import keras; print(keras.__version__)") \
&& pip install --no-cache-dir tf2jax==0.3.6 \
&& pip install --no-cache-dir "keras==$KERAS_VER" pandas jaxwt dm-pix
COPY . /ulsa
WORKDIR /ulsa
RUN pip install --no-cache-dir -e zea