Update Dockerfile
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
@@ -8,6 +8,7 @@ RUN apt-get update
|
|
8 |
RUN apt install -y python3-pip
|
9 |
RUN rm /usr/lib/python3.*/EXTERNALLY-MANAGED
|
10 |
|
|
|
11 |
COPY requirements.txt .
|
12 |
|
13 |
RUN pip install --no-cache-dir -r requirements.txt
|
@@ -16,6 +17,8 @@ COPY . .
|
|
16 |
|
17 |
ENV HF_HOME=/tmp
|
18 |
ENV TRANSFORMERS_CACHE=/tmp
|
|
|
|
|
19 |
|
20 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
21 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
8 |
RUN apt install -y python3-pip
|
9 |
RUN rm /usr/lib/python3.*/EXTERNALLY-MANAGED
|
10 |
|
11 |
+
|
12 |
COPY requirements.txt .
|
13 |
|
14 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
17 |
|
18 |
ENV HF_HOME=/tmp
|
19 |
ENV TRANSFORMERS_CACHE=/tmp
|
20 |
+
RUN RUN chown -R <user>:<group> /usr/src/app
|
21 |
+
|
22 |
|
23 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
24 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|