Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +4 -11
Dockerfile
CHANGED
@@ -44,22 +44,15 @@ ENV HOME=/home/user
|
|
44 |
RUN mkdir $HOME/.cache $HOME/.config \
|
45 |
&& chmod -R 777 $HOME
|
46 |
|
47 |
-
# Set up the Conda environment
|
48 |
ENV CONDA_AUTO_UPDATE_CONDA=false \
|
49 |
-
|
50 |
-
PATH=$CONDA_DIR/bin:$PATH
|
51 |
RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
|
52 |
&& chmod +x ~/miniconda.sh \
|
53 |
-
&&
|
54 |
-
&& ~/miniconda.sh -b -p $CONDA_DIR \
|
55 |
&& rm ~/miniconda.sh \
|
56 |
&& conda clean -ya
|
57 |
|
58 |
-
# Ensure /data directory exists and is accessible
|
59 |
-
USER root
|
60 |
-
RUN chown -R user:user /data
|
61 |
-
USER user
|
62 |
-
|
63 |
WORKDIR $HOME/app
|
64 |
|
65 |
#######################################
|
@@ -103,4 +96,4 @@ ENV PYTHONUNBUFFERED=1 \
|
|
103 |
SYSTEM=spaces \
|
104 |
SHELL=/bin/bash
|
105 |
|
106 |
-
CMD ["./start_server.sh"]
|
|
|
44 |
RUN mkdir $HOME/.cache $HOME/.config \
|
45 |
&& chmod -R 777 $HOME
|
46 |
|
47 |
+
# Set up the Conda environment
|
48 |
ENV CONDA_AUTO_UPDATE_CONDA=false \
|
49 |
+
PATH=$HOME/miniconda/bin:$PATH
|
|
|
50 |
RUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \
|
51 |
&& chmod +x ~/miniconda.sh \
|
52 |
+
&& ~/miniconda.sh -b -p ~/miniconda \
|
|
|
53 |
&& rm ~/miniconda.sh \
|
54 |
&& conda clean -ya
|
55 |
|
|
|
|
|
|
|
|
|
|
|
56 |
WORKDIR $HOME/app
|
57 |
|
58 |
#######################################
|
|
|
96 |
SYSTEM=spaces \
|
97 |
SHELL=/bin/bash
|
98 |
|
99 |
+
CMD ["./start_server.sh"]
|