Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -4,6 +4,9 @@ FROM python:3.11.3-slim
|
|
4 |
# Set the working directory within the container
|
5 |
WORKDIR /app
|
6 |
|
|
|
|
|
|
|
7 |
# Copy the .env file containing the API Key into the container
|
8 |
COPY ./.env /app/.env
|
9 |
|
@@ -19,6 +22,9 @@ COPY ./requirements.txt /app/requirements.txt
|
|
19 |
# Install the Python dependencies
|
20 |
RUN pip install -r /app/requirements.txt
|
21 |
|
|
|
|
|
|
|
22 |
# Expose port 7860 for the FastAPI application
|
23 |
EXPOSE 7860
|
24 |
|
|
|
4 |
# Set the working directory within the container
|
5 |
WORKDIR /app
|
6 |
|
7 |
+
# Create a directory for storing documents
|
8 |
+
RUN mkdir /app/documents
|
9 |
+
|
10 |
# Copy the .env file containing the API Key into the container
|
11 |
COPY ./.env /app/.env
|
12 |
|
|
|
22 |
# Install the Python dependencies
|
23 |
RUN pip install -r /app/requirements.txt
|
24 |
|
25 |
+
# Adjust permissions on the /app directory
|
26 |
+
RUN chmod -R 777 /app
|
27 |
+
|
28 |
# Expose port 7860 for the FastAPI application
|
29 |
EXPOSE 7860
|
30 |
|