Spaces:
Sleeping
Sleeping
Commit
·
4c1f27a
1
Parent(s):
b4bfaed
update
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
@@ -30,9 +30,13 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
|
|
30 |
RUN useradd -m -u 1000 user
|
31 |
|
32 |
RUN mkdir /app
|
|
|
33 |
RUN chown -R 1000:1000 /app
|
|
|
34 |
RUN mkdir /data
|
35 |
RUN chown -R 1000:1000 /data
|
|
|
|
|
36 |
|
37 |
# Switch to the "user" user
|
38 |
USER user
|
@@ -57,4 +61,6 @@ COPY --chown=1000 entrypoint.sh /app/entrypoint.sh
|
|
57 |
RUN chmod +x /app/entrypoint.sh
|
58 |
|
59 |
# entrypoint
|
|
|
|
|
60 |
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
|
|
30 |
RUN useradd -m -u 1000 user
|
31 |
|
32 |
RUN mkdir /app
|
33 |
+
RUN mkdir /app/models
|
34 |
RUN chown -R 1000:1000 /app
|
35 |
+
RUN chown -R 1000:1000 /app/models
|
36 |
RUN mkdir /data
|
37 |
RUN chown -R 1000:1000 /data
|
38 |
+
RUN chown -R 1000:1000 /usr/
|
39 |
+
RUN chown -R 1000:1000 /root/
|
40 |
|
41 |
# Switch to the "user" user
|
42 |
USER user
|
|
|
61 |
RUN chmod +x /app/entrypoint.sh
|
62 |
|
63 |
# entrypoint
|
64 |
+
ENV PYTHONHOME="/root/.local/share/uv/python/cpython-3.11.11-linux-x86_64-gnu"
|
65 |
+
ENV PYTHONPATH="/usr/src/.venv/lib/python3.11/site-packages/"
|
66 |
ENTRYPOINT [ "/app/entrypoint.sh" ]
|