Spaces:
Running
Running
zbotta
commited on
Commit
·
2645242
1
Parent(s):
1a55aed
back to appuser permissions
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -55,14 +55,14 @@ COPY --from=fetcher src/entry_point.sh /reportAgent/entry_point.sh
|
|
| 55 |
COPY --from=fetcher src/app/ /reportAgent/app/
|
| 56 |
|
| 57 |
# Create & own runtime dirs the app/entrypoint will use
|
| 58 |
-
|
| 59 |
-
|
| 60 |
|
| 61 |
-
|
| 62 |
-
|
| 63 |
|
| 64 |
# Drop root
|
| 65 |
-
USER
|
| 66 |
|
| 67 |
EXPOSE 8501
|
| 68 |
|
|
|
|
| 55 |
COPY --from=fetcher src/app/ /reportAgent/app/
|
| 56 |
|
| 57 |
# Create & own runtime dirs the app/entrypoint will use
|
| 58 |
+
RUN mkdir -p /home/appuser/.cache/huggingface /reportAgent/app/logs \
|
| 59 |
+
&& chown -R appuser:appuser /home/appuser /reportAgent/app/logs/
|
| 60 |
|
| 61 |
+
RUN chmod +x /reportAgent/entry_point.sh && chown -R appuser:appuser /reportAgent /reportAgent/entry_point.sh /home/appuser
|
| 62 |
+
RUN chown -R appuser:appuser /reportAgent/ /home/appuser
|
| 63 |
|
| 64 |
# Drop root
|
| 65 |
+
USER appuser
|
| 66 |
|
| 67 |
EXPOSE 8501
|
| 68 |
|