Spaces:
Runtime error
Runtime error
Commit
·
2613877
1
Parent(s):
3b8d04f
fix: streamline Dockerfile by removing Miniconda installation and ensuring sudo usage for Conda commands
Browse files- Dockerfile +3 -11
Dockerfile
CHANGED
@@ -27,14 +27,6 @@ USER hyathi
|
|
27 |
ENV HOME=/home/hyathi \
|
28 |
PATH=/home/hyathi/.local/bin:$PATH
|
29 |
|
30 |
-
# Install Miniconda (if not already installed) to the user's home directory
|
31 |
-
RUN curl -sSL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/miniconda.sh && \
|
32 |
-
bash /tmp/miniconda.sh -b -p /home/hyathi/miniconda && \
|
33 |
-
rm /tmp/miniconda.sh
|
34 |
-
|
35 |
-
# Add Conda to the PATH
|
36 |
-
ENV PATH="/home/hyathi/miniconda/bin:$PATH"
|
37 |
-
|
38 |
# Set the working directory
|
39 |
WORKDIR $HOME/app
|
40 |
|
@@ -56,9 +48,9 @@ RUN sudo apt update -y && sudo apt upgrade -y && \
|
|
56 |
sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
57 |
|
58 |
# Update Conda and install libsndfile
|
59 |
-
RUN conda update --all && \
|
60 |
-
conda install -c conda-forge libsndfile && \
|
61 |
-
conda clean --all -y
|
62 |
|
63 |
# Install Python dependencies from requirements.txt
|
64 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
27 |
ENV HOME=/home/hyathi \
|
28 |
PATH=/home/hyathi/.local/bin:$PATH
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
# Set the working directory
|
31 |
WORKDIR $HOME/app
|
32 |
|
|
|
48 |
sudo rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
49 |
|
50 |
# Update Conda and install libsndfile
|
51 |
+
RUN sudo conda update --all && \
|
52 |
+
sudo conda install -c conda-forge libsndfile && \
|
53 |
+
sudo conda clean --all -y
|
54 |
|
55 |
# Install Python dependencies from requirements.txt
|
56 |
RUN pip install --no-cache-dir -r requirements.txt
|