Skip to content

Commit

Permalink
Dockerfile update with Miniconda installation
Browse files Browse the repository at this point in the history
  • Loading branch information
a-saraf committed Dec 12, 2023
1 parent e1005fe commit fe347e2
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions sims/Timeloop/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
# start with miniconda image
FROM continuumio/miniconda3

RUN if ! id 1000; then useradd -m -u 1000 clouduser; fi

FROM nelliewu/accelergy-timeloop-infrastructure:latest AS builder
#
# Main image
#
FROM timeloopaccelergy/accelergy-timeloop-infrastructure:latest

RUN if ! id 1000; then useradd -m -u 1000 clouduser; fi

# Install the base utilities
RUN apt-get update -y \
&& apt-get install -y less \
&& apt-get install -y build-essential \
&& apt-get install -y wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN apt-get update -y
RUN apt-get install -y less
# Install miniconda
ENV conda /opt/conda
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda

# Put conda on the path
ENV PATH=$CONDA_DIR/bin:$PATH

RUN cp -r /usr/local/src .
WORKDIR /home/workspace/src
Expand All @@ -22,7 +30,6 @@ RUN touch /home/workspace/.nointro
RUN chown -R 1000:root /home/workspace && chmod -R 775 /home/workspace

#RUN conda install

RUN git clone --recursive https://srivatsankrishnan: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@github.com/srivatsankrishnan/arch-gym.git
RUN chown -R 1000:root /home/workspace && chmod -R 775 /home/workspace
RUN cd arch-gym && conda env create -f environment.yml
Expand Down

0 comments on commit fe347e2

Please sign in to comment.