Spaces:
Runtime error
Runtime error
Commit
·
bcd455b
1
Parent(s):
1208e67
Updated Docker
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -16,6 +16,11 @@ RUN apt-get update && apt-get install -y \
|
|
16 |
RUN useradd -m -u 1000 user
|
17 |
WORKDIR /app
|
18 |
|
|
|
|
|
|
|
|
|
|
|
19 |
COPY requirements.txt .
|
20 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
21 |
|
|
|
16 |
RUN useradd -m -u 1000 user
|
17 |
WORKDIR /app
|
18 |
|
19 |
+
RUN chown -R user:user /app
|
20 |
+
|
21 |
+
# Switch to the non-root user
|
22 |
+
USER user
|
23 |
+
|
24 |
COPY requirements.txt .
|
25 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
26 |
|