Spaces:
Sleeping
Sleeping
Commit
·
dad5d6e
1
Parent(s):
697c967
Push the app
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -5,14 +5,14 @@ RUN apt-get update && apt-get install -y libgl1 libglib2.0-0
|
|
| 5 |
# Create user but stay root during install
|
| 6 |
RUN useradd -m -u 1000 user
|
| 7 |
|
| 8 |
-
WORKDIR /
|
| 9 |
|
| 10 |
# Install dependencies as root
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 13 |
|
| 14 |
# Copy app AFTER installing dependencies
|
| 15 |
-
COPY . /
|
| 16 |
|
| 17 |
# Switch to non-root user for safety
|
| 18 |
USER user
|
|
|
|
| 5 |
# Create user but stay root during install
|
| 6 |
RUN useradd -m -u 1000 user
|
| 7 |
|
| 8 |
+
WORKDIR /app
|
| 9 |
|
| 10 |
# Install dependencies as root
|
| 11 |
COPY requirements.txt .
|
| 12 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 13 |
|
| 14 |
# Copy app AFTER installing dependencies
|
| 15 |
+
COPY . /app
|
| 16 |
|
| 17 |
# Switch to non-root user for safety
|
| 18 |
USER user
|