Spaces:
Runtime error
Runtime error
Commit
·
9993d81
1
Parent(s):
a383849
Update Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
CHANGED
@@ -11,6 +11,27 @@ RUN apt-get update && apt-get upgrade -y
|
|
11 |
RUN apt-get install ffmpeg -y
|
12 |
RUN apt-get install git -y
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
RUN pip install --upgrade pip
|
15 |
|
16 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
11 |
RUN apt-get install ffmpeg -y
|
12 |
RUN apt-get install git -y
|
13 |
|
14 |
+
RUN apt-get install -y \
|
15 |
+
build-essential \
|
16 |
+
libssl-dev \
|
17 |
+
ca-certificates \
|
18 |
+
libasound2 \
|
19 |
+
wget
|
20 |
+
|
21 |
+
# Download OpenSSL source, compile, and install it
|
22 |
+
RUN wget -O - https://www.openssl.org/source/openssl-1.1.1u.tar.gz | tar zxf -
|
23 |
+
WORKDIR openssl-1.1.1u
|
24 |
+
RUN ./config --prefix=/usr/local
|
25 |
+
RUN make -j $(nproc)
|
26 |
+
RUN make install_sw install_ssldirs
|
27 |
+
RUN ldconfig -v
|
28 |
+
|
29 |
+
# Set environment variables
|
30 |
+
ENV SSL_CERT_DIR=/etc/ssl/certs
|
31 |
+
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
32 |
+
|
33 |
+
WORKDIR /code
|
34 |
+
|
35 |
RUN pip install --upgrade pip
|
36 |
|
37 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|