Update Dockerfile
Browse files- Dockerfile +1 -10
Dockerfile
CHANGED
|
@@ -4,17 +4,8 @@ RUN apt-get update && apt-get install -y build-essential curl git && rm -rf /var
|
|
| 4 |
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Create non-root user
|
| 8 |
-
RUN useradd -m -u 1000 user
|
| 9 |
-
|
| 10 |
-
# Switch to the non-root user earlier if needed
|
| 11 |
-
USER user
|
| 12 |
-
|
| 13 |
# Copy application files as the non-root user to avoid permission issues
|
| 14 |
-
COPY
|
| 15 |
-
|
| 16 |
-
# Update PATH to ensure local bin is included
|
| 17 |
-
ENV PATH=/home/user/.local/bin:$PATH
|
| 18 |
|
| 19 |
# Install dependencies, ensuring the streamlit executable is in PATH
|
| 20 |
RUN pip install --upgrade pip && pip install --user -r requirements.txt
|
|
|
|
| 4 |
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Copy application files as the non-root user to avoid permission issues
|
| 8 |
+
COPY . /app
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# Install dependencies, ensuring the streamlit executable is in PATH
|
| 11 |
RUN pip install --upgrade pip && pip install --user -r requirements.txt
|