Spaces:
Runtime error
Runtime error
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"] | |