bjhk / Dockerfile
heymenn's picture
Create Dockerfile
9cbd2c5 verified
raw
history blame
923 Bytes
FROM python:3.11-slim
WORKDIR /usr/src/app
#Set proxy settings
# RUN export http_proxy=185.46.212.98:80
# RUN export https_proxy=185.46.212.98:80
# Set our certificate to access pip commands
#COPY certificates/. /usr/local/share/ca-certificates/
#COPY certificates/. /usr/etc/ca-certificates/
#RUN update-ca-certificates
# COPY pip.conf /root/.config/pip/pip.conf
COPY requirements.txt .
#COPY certificates/ .
#RUN pip --cert /etc/ssl/certs/ca-certificates.crt install certifi
RUN pip --cert /etc/ssl/certs/ca-certificates.crt install -r requirements.txt
#RUN sh -c 'cat certificates/*.crt >> /usr/local/lib/python3.11/site-packages/certifi/cacert.pem'
#RUN cat ./certificates/thales_cert.crt >> /usr/local/lib/python3.11/site-packages/certifi/cacert.pem
#RUN bash -c "export REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificate.crt"
COPY . .
EXPOSE 7860
EXPOSE 7861
ENV GRADIO_SERVER_NAME="0.0.0.0"
CMD . ./start.sh