Spaces:
Sleeping
Sleeping
File size: 861 Bytes
f3135d5 75c077d f3135d5 75c077d f3135d5 75c077d f3135d5 75c077d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
FROM python:3.10
WORKDIR /app
COPY . .
RUN pip install -r requirements.txt
# -----------------------------------------------------------------
# Copy certificates to make use of free open ai usage within the lab
# REMOVE THIS WHEN DEPLOYING TO CODE ENGINE
# Copy the self-signed root CA certificate into the container
# COPY certs/rootCA.crt /usr/local/share/ca-certificates/rootCA.crt
# Update the CA trust store to trust the self-signed certificate
# RUN chmod 644 /usr/local/share/ca-certificates/rootCA.crt && \
# update-ca-certificates
# Set the environment variable OPENAI_API_KEY to empty string
# ENV OPENAI_API_KEY=skills-network
# ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
# ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
# -----------------------------------------------------------------
CMD ["python", "-u", "app.py"] |