Spaces:
Paused
Paused
rcastriotta
commited on
Commit
•
effe894
1
Parent(s):
7366a8a
Update Dockerfile
Browse files- Dockerfile +7 -2
Dockerfile
CHANGED
@@ -15,9 +15,14 @@ RUN --mount=type=cache,target=/root/.cache \
|
|
15 |
|
16 |
COPY . /app
|
17 |
|
18 |
-
|
|
|
|
|
19 |
|
20 |
-
RUN mkdir -p tmp
|
21 |
ENV NUMBA_CACHE_DIR=/tmp
|
22 |
|
|
|
|
|
|
|
|
|
23 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
15 |
|
16 |
COPY . /app
|
17 |
|
18 |
+
RUN mkdir -p tmp && \
|
19 |
+
chown -R 1000:1000 tmp && \
|
20 |
+
chmod -R 775 tmp
|
21 |
|
|
|
22 |
ENV NUMBA_CACHE_DIR=/tmp
|
23 |
|
24 |
+
RUN useradd --create-home --uid 1000 appuser
|
25 |
+
USER appuser
|
26 |
+
|
27 |
+
EXPOSE 7860
|
28 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|