Create Dockerfile
Browse files- Dockerfile +33 -0
Dockerfile
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
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 |
+
#COPY certificates/ .
|
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
|
30 |
+
EXPOSE 7861
|
31 |
+
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
32 |
+
|
33 |
+
CMD . ./start.sh
|