radames commited on
Commit
ee7eb67
1 Parent(s): cbf11fe

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -17
Dockerfile CHANGED
@@ -21,33 +21,36 @@
21
 
22
  FROM ubuntu:20.04
23
 
24
- ARG DEFAUL_TZ=America/Los_Angeles
25
  ENV DEFAULT_TZ=$DEFAULT_TZ
26
  ARG MODULAR_HOME=/home/user/.modular
27
  ENV MODULAR_HOME=$MODULAR_HOME
28
 
29
  RUN apt-get update \
30
- && DEBIAN_FRONTEND=noninteractive $DEFAULT_TZ apt-get install -y \
31
  tzdata \
32
  vim \
33
  sudo \
34
- curl \
35
- python3 \
36
- pip \
37
- wget \
38
- libedit-dev \
39
- && python3 -m pip install \
40
- jupyterlab \
41
- ipykernel \
42
- matplotlib \
43
- ipywidgets \
44
- gradio
45
 
46
  RUN curl -fsSL https://repo.anaconda.com/miniconda/Miniconda3-py38_23.5.2-0-Linux-x86_64.sh > /tmp/miniconda.sh \
47
  && chmod +x /tmp/miniconda.sh \
48
  && /tmp/miniconda.sh -b -p /opt/conda
49
 
50
- ARG AUTH_KEY=DEFAULT_KEY
 
 
 
 
 
 
 
 
 
 
51
  ENV AUTH_KEY=$AUTH_KEY
52
 
53
  RUN curl https://get.modular.com | MODULAR_AUTH=$AUTH_KEY sh - \
@@ -58,9 +61,6 @@ RUN chown -R user $MODULAR_HOME
58
 
59
  ENV PATH="$PATH:/opt/conda/bin:$MODULAR_HOME/pkg/packages.modular.com_mojo/bin"
60
 
61
- RUN conda init
62
- RUN pip install gradio
63
-
64
  USER user
65
  WORKDIR $HOME/app
66
 
 
21
 
22
  FROM ubuntu:20.04
23
 
24
+ ARG DEFAULT_TZ=America/Los_Angeles
25
  ENV DEFAULT_TZ=$DEFAULT_TZ
26
  ARG MODULAR_HOME=/home/user/.modular
27
  ENV MODULAR_HOME=$MODULAR_HOME
28
 
29
  RUN apt-get update \
30
+ && DEBIAN_FRONTEND=noninteractive TZ=$DEFAULT_TZ apt-get install -y \
31
  tzdata \
32
  vim \
33
  sudo \
34
+ curl \
35
+ git \
36
+ wget && \
37
+ rm -rf /var/lib/apt/lists/*
 
 
 
 
 
 
 
38
 
39
  RUN curl -fsSL https://repo.anaconda.com/miniconda/Miniconda3-py38_23.5.2-0-Linux-x86_64.sh > /tmp/miniconda.sh \
40
  && chmod +x /tmp/miniconda.sh \
41
  && /tmp/miniconda.sh -b -p /opt/conda
42
 
43
+ ENV PATH=/opt/conda/bin:$PATH
44
+ RUN conda init
45
+ RUN pip install \
46
+ jupyterlab \
47
+ ipykernel \
48
+ matplotlib \
49
+ ipywidgets \
50
+ gradio
51
+
52
+ # A random default token
53
+ ARG AUTH_KEY=5ca1ab1e
54
  ENV AUTH_KEY=$AUTH_KEY
55
 
56
  RUN curl https://get.modular.com | MODULAR_AUTH=$AUTH_KEY sh - \
 
61
 
62
  ENV PATH="$PATH:/opt/conda/bin:$MODULAR_HOME/pkg/packages.modular.com_mojo/bin"
63
 
 
 
 
64
  USER user
65
  WORKDIR $HOME/app
66