You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, Thank you so much for this, this is great. I'm trying to create a fork that implements torch and transformers in the build. However build.sh fails to work and errors out as .version is not found. It looks to me like there are parameters and an assumed directory structure. Could you talk about those?
The text was updated successfully, but these errors were encountered:
I developed this dockerfile taking most of the code from the code-server GitHub. Here is the link, so maybe you can find there some inspiration. Also, the way in which I use the container is through a reference in another container link here. What I would recommend is to use as a template the second dockerfile as it is easier to use. This is what I would do:
# This should provide you with code-server in your container + CUDA 11FROM phisanti/cuda-code-server:latest
# Install condaRUN curl -o ~/miniconda.sh -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
chmod +x ~/miniconda.sh && \
~/miniconda.sh -b && \
rm ~/miniconda.sh && \
/home/coder/miniconda3/bin/conda install conda-build
ENV PATH=$PATH:/home/coder/miniconda3/bin/
# Add the lines here:RUN apt update && \
apt install -y git \
ca-certificates \
python3 \
python3-pip && \
rm -rf /var/lib/apt/lists
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
python3 -m pip install --no-cache-dir \
jupyter \
tensorflow \
torch
RUN git clone https://github.com/NVIDIA/apex
RUN cd apex && \
python3 setup.py install && \
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
WORKDIR /workspace
COPY . transformers/
RUN cd transformers/ && \
python3 -m pip install --no-cache-dir .
# Entrypoint# Remember to copy this file tooCOPY run.sh /run.sh
EXPOSE 8888
EXPOSE 8889
EXPOSE 8890
ENTRYPOINT ["/run.sh"]
Hi, Thank you so much for this, this is great. I'm trying to create a fork that implements torch and transformers in the build. However build.sh fails to work and errors out as .version is not found. It looks to me like there are parameters and an assumed directory structure. Could you talk about those?
The text was updated successfully, but these errors were encountered: