forked from gulfaraz/caladrius
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
45 lines (34 loc) · 1.23 KB
/
Dockerfile
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
35
36
37
38
39
40
41
42
43
44
45
# Use the official PyTorch runtime as a parent image
FROM python:3.7-slim
# Set the working directory to /app
WORKDIR /workspace
# Add the data directory to the workspace
VOLUME ["/workspace/data"]
# Copy the current directory contents into the container at /app
COPY . /workspace
ENV HOME="/home"
ENV PATH="$HOME/conda/bin:$PATH"
# Install any needed packages
RUN apt-get update &&\
apt-get install -y --no-install-recommends curl vim less
ENV HOME="/root"
# Install conda
ENV PATH="$HOME/conda/bin:$PATH"
RUN mkdir $HOME/.conda &&\
curl -sL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > $HOME/miniconda.sh &&\
chmod 0755 $HOME/miniconda.sh &&\
/bin/bash $HOME/miniconda.sh -b -p $HOME/conda &&\
rm $HOME/miniconda.sh &&\
$HOME/conda/bin/conda update -n base -c defaults conda
# Install NodeJS
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash &&\
apt-get update &&\
apt-get install -y --no-install-recommends nodejs &&\
rm -rf /var/lib/apt/lists/*
# Install Caladrius
RUN /bin/bash caladrius_install.sh &&\
echo "source activate cal" >> ~/.bashrc
# Make port 5000 available to the world outside this container
EXPOSE 5000
# Define environment variable
ENV NAME CALADRIUS