-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (20 loc) · 985 Bytes
/
Dockerfile
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
26
27
28
# Utiliser l'image de base de Miniconda
# Use the Miniconda base image
FROM continuumio/miniconda3
# Set the working directory
WORKDIR /app
# Copy the environment.yml file to install the conda dependencies
COPY environment.yml .
# Create the conda environment from the environment.yml file
RUN conda env create -f environment.yml
# Copy the .env file to the working directory
COPY .env .
# Copy the contents of the src folder to the working directory
COPY src/ src/
# Activate the conda environment
SHELL ["conda", "run", "-n", "chat_pdf", "/bin/bash", "-c"]
# Expose by default port 7860 (80, 433 already in use)
EXPOSE 7860
# Set the command to run the application
# (--no-capture-output to return stdout to the console)
CMD ["conda", "run", "--no-capture-output", "-n", "chat_pdf", "python", "src", "run", "--host", "0.0.0.0", "--ssl-keyfile", "/etc/letsencrypt/live/pierrechaumont.fr/privkey.pem", "--ssl-certfile", "/etc/letsencrypt/live/pierrechaumont.fr/fullchain.pem"]