Update Dockerfile
Browse files- Dockerfile +1 -21
Dockerfile
CHANGED
@@ -2,28 +2,8 @@ FROM python:3.11-slim
|
|
2 |
|
3 |
WORKDIR /usr/src/app
|
4 |
|
5 |
-
#Set proxy settings
|
6 |
-
# RUN export http_proxy=185.46.212.98:80
|
7 |
-
# RUN export https_proxy=185.46.212.98:80
|
8 |
-
|
9 |
-
|
10 |
-
# Set our certificate to access pip commands
|
11 |
-
#COPY certificates/. /usr/local/share/ca-certificates/
|
12 |
-
#COPY certificates/. /usr/etc/ca-certificates/
|
13 |
-
|
14 |
-
#RUN update-ca-certificates
|
15 |
-
|
16 |
-
# COPY pip.conf /root/.config/pip/pip.conf
|
17 |
COPY requirements.txt .
|
18 |
-
|
19 |
-
|
20 |
-
#RUN pip --cert /etc/ssl/certs/ca-certificates.crt install certifi
|
21 |
-
RUN pip --cert /etc/ssl/certs/ca-certificates.crt install -r requirements.txt
|
22 |
-
|
23 |
-
#RUN sh -c 'cat certificates/*.crt >> /usr/local/lib/python3.11/site-packages/certifi/cacert.pem'
|
24 |
-
#RUN cat ./certificates/thales_cert.crt >> /usr/local/lib/python3.11/site-packages/certifi/cacert.pem
|
25 |
-
|
26 |
-
#RUN bash -c "export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificate.crt"
|
27 |
|
28 |
COPY . .
|
29 |
EXPOSE 7860
|
|
|
2 |
|
3 |
WORKDIR /usr/src/app
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
COPY requirements.txt .
|
6 |
+
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
COPY . .
|
9 |
EXPOSE 7860
|