Spaces:
Runtime error
Runtime error
File size: 942 Bytes
ec60126 |
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 |
FROM ubuntu:latest
RUN apt-get update -y
RUN apt-get install -y sudo wget curl nano git tar bzip2 && rm -rf /var/lib/apt/lists/*
# Build is significantly faster with micromamba, rather than conda
RUN curl -Ls https://micro.mamba.pm/api/micromamba/linux-aarch64/latest | tar -xvj bin/micromamba
RUN ./bin/micromamba shell init -s bash -p ~/micromamba # this writes to your .bashrc file
RUN ./bin/micromamba --version
# Create conda environment first
# This is time-consuming and don't want to reproduce it often
COPY ./basic_environment.yml /
RUN ./bin/micromamba env create --file basic_environment.yml && ./bin/micromamba clean -afy
RUN ./bin/micromamba list > spec-file.txt
RUN echo "micromamba activate basic" >> ~/.bashrc
COPY . /app
WORKDIR /app
EXPOSE 8501
# Entrypoint script which activates conda environment
ENTRYPOINT ["/bin/micromamba", "run", "-n", "basic", "streamlit", "run", "app.py"]
# ENTRYPOINT ["./entrypoint.sh"]
|