Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +9 -2
Dockerfile
CHANGED
@@ -5,9 +5,15 @@ WORKDIR /code
|
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
COPY ./pre-requirements.txt /code/pre-requirements.txt
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
RUN pip install --no-cache-dir --upgrade -r /code/pre-requirements.txt
|
9 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
10 |
-
|
11 |
# Set up a new user named "user" with user ID 1000
|
12 |
RUN useradd -m -u 1000 user
|
13 |
# Switch to the "user" user
|
@@ -22,7 +28,8 @@ ENV HOME=/home/user \
|
|
22 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
23 |
GRADIO_THEME=huggingface \
|
24 |
SYSTEM=spaces
|
25 |
-
|
|
|
26 |
# Set the working directory to the user's home directory
|
27 |
WORKDIR $HOME/app
|
28 |
|
|
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
COPY ./pre-requirements.txt /code/pre-requirements.txt
|
7 |
|
8 |
+
RUN wget https://github.com/TA-Lib/ta-lib-python/archive/refs/tags/TA_Lib-0.4.26.zip \
|
9 |
+
&& tar -xzf TA_Lib-0.4.26.zip \
|
10 |
+
&& cd ta-lib/ \
|
11 |
+
&& ./configure --prefix=/usr \
|
12 |
+
&& make && make install
|
13 |
+
|
14 |
RUN pip install --no-cache-dir --upgrade -r /code/pre-requirements.txt
|
15 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
16 |
+
|
17 |
# Set up a new user named "user" with user ID 1000
|
18 |
RUN useradd -m -u 1000 user
|
19 |
# Switch to the "user" user
|
|
|
28 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
29 |
GRADIO_THEME=huggingface \
|
30 |
SYSTEM=spaces
|
31 |
+
|
32 |
+
|
33 |
# Set the working directory to the user's home directory
|
34 |
WORKDIR $HOME/app
|
35 |
|