forked from Eshe/competition-vd
32 lines
1.1 KiB
Plaintext
Executable File
32 lines
1.1 KiB
Plaintext
Executable File
FROM ubuntu:20.04
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV PATH="/root/miniconda3/bin:${PATH}"
|
|
ARG PATH="/root/miniconda3/bin:${PATH}"
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y wget git libgl1-mesa-glx libglib2.0-0 && \
|
|
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
|
|
mkdir /root/.conda && \
|
|
bash Miniconda3-latest-Linux-x86_64.sh -b && \
|
|
rm -f Miniconda3-latest-Linux-x86_64.sh && \
|
|
echo "conda activate base" >> ~/.bashrc
|
|
|
|
RUN conda install -y python=3.8 && \
|
|
conda install -y -c pytorch pytorch torchvision torchaudio cudatoolkit=11.1 && \
|
|
conda install -y -c conda-forge transformers pandas numpy matplotlib seaborn scikit-learn tqdm wordcloud jupyter
|
|
|
|
COPY . .
|
|
|
|
RUN pip install --no-cache-dir -r custom_requirements.txt
|
|
|
|
RUN conda install -y -c conda-forge nodejs && \
|
|
jupyter labextension install @jupyter-widgets/jupyterlab-manager
|
|
|
|
RUN echo 'alias python=python3' >> ~/.bashrc && \
|
|
echo 'export PYTHONPATH="${PYTHONPATH}:/app/src"' >> ~/.bashrc
|
|
|
|
RUN chmod +x /app/entrypoint.sh
|
|
|
|
ENTRYPOINT ["/app/entrypoint.sh"] |