Spaces:
Sleeping
Sleeping
nam pham
commited on
Commit
·
1f617c6
1
Parent(s):
16a01be
fix: permission denied
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -21,6 +21,7 @@ FROM python:$PYTHON_VERSION-slim as runtime
|
|
21 |
# RUN pip install some-package
|
22 |
# RUN wget https://path/to/some/data/or/weights
|
23 |
# RUN apt-get update && apt-get install -y <package-name>
|
|
|
24 |
|
25 |
RUN useradd -m -u 1000 user
|
26 |
USER user
|
@@ -31,7 +32,6 @@ ENV VIRTUAL_ENV=/app/.venv \
|
|
31 |
COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
|
32 |
|
33 |
COPY --chown=user . /app
|
34 |
-
RUN mkdir -p /app/cache && chmod 777 /app/cache
|
35 |
|
36 |
# Install litserve and requirements
|
37 |
EXPOSE 8000
|
|
|
21 |
# RUN pip install some-package
|
22 |
# RUN wget https://path/to/some/data/or/weights
|
23 |
# RUN apt-get update && apt-get install -y <package-name>
|
24 |
+
RUN mkdir -p /app/cache && chmod 777 /app/cache
|
25 |
|
26 |
RUN useradd -m -u 1000 user
|
27 |
USER user
|
|
|
32 |
COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}
|
33 |
|
34 |
COPY --chown=user . /app
|
|
|
35 |
|
36 |
# Install litserve and requirements
|
37 |
EXPOSE 8000
|