Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
@@ -1,8 +1,13 @@
|
|
1 |
# Base image using Python 3.9
|
2 |
FROM python:3.9
|
3 |
|
4 |
-
# Install system dependencies needed by OpenCV and
|
5 |
-
RUN apt-get update && apt-get install -y
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
# Create a new user to run the app
|
8 |
RUN useradd -m -u 1000 user
|
@@ -10,6 +15,7 @@ USER user
|
|
10 |
|
11 |
# Set environment variables
|
12 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
13 |
|
14 |
# Set the working directory
|
15 |
WORKDIR /app
|
|
|
1 |
# Base image using Python 3.9
|
2 |
FROM python:3.9
|
3 |
|
4 |
+
# Install system dependencies needed by OpenCV, network utilities, and certificates.
|
5 |
+
RUN apt-get update && apt-get install -y \
|
6 |
+
libgl1-mesa-glx \
|
7 |
+
iputils-ping \
|
8 |
+
net-tools \
|
9 |
+
curl \
|
10 |
+
ca-certificates
|
11 |
|
12 |
# Create a new user to run the app
|
13 |
RUN useradd -m -u 1000 user
|
|
|
15 |
|
16 |
# Set environment variables
|
17 |
ENV PATH="/home/user/.local/bin:$PATH"
|
18 |
+
ENV PYTHONUNBUFFERED=1
|
19 |
|
20 |
# Set the working directory
|
21 |
WORKDIR /app
|