Spaces:
Sleeping
Sleeping
Commit
·
8b5798c
1
Parent(s):
6dc6071
update permissions
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -11,7 +11,7 @@ WORKDIR /app
|
|
11 |
RUN mkdir -p /app/models
|
12 |
|
13 |
# Create the uploads directory explicitly
|
14 |
-
RUN mkdir -p /app/uploads && chmod -R 755 /app/uploads
|
15 |
|
16 |
# Install curl or wget (depending on your preference for downloading files)
|
17 |
RUN apt-get update && apt-get install -y curl
|
@@ -28,4 +28,7 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
28 |
|
29 |
COPY --chown=user . /app
|
30 |
|
|
|
|
|
|
|
31 |
CMD ["uvicorn", "index:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
11 |
RUN mkdir -p /app/models
|
12 |
|
13 |
# Create the uploads directory explicitly
|
14 |
+
RUN mkdir -p /app/uploads && chmod -R 755 /app/uploads && chown -R user:user /app/uploads
|
15 |
|
16 |
# Install curl or wget (depending on your preference for downloading files)
|
17 |
RUN apt-get update && apt-get install -y curl
|
|
|
28 |
|
29 |
COPY --chown=user . /app
|
30 |
|
31 |
+
# Run the application as 'user'
|
32 |
+
USER user
|
33 |
+
|
34 |
CMD ["uvicorn", "index:app", "--host", "0.0.0.0", "--port", "7860"]
|