Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use the official Python 3.9 image from Docker Hub
|
2 |
-
FROM python:3.
|
3 |
|
4 |
# Create a non-root user
|
5 |
RUN useradd -m -u 1000 user
|
@@ -12,6 +12,8 @@ WORKDIR /app
|
|
12 |
# Copy the requirements file and install dependencies
|
13 |
COPY --chown=user:user ./requirements.txt requirements.txt
|
14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
|
|
|
15 |
|
16 |
# Copy the rest of your application code
|
17 |
COPY --chown=user:user . /app
|
|
|
1 |
# Use the official Python 3.9 image from Docker Hub
|
2 |
+
FROM python:3.10
|
3 |
|
4 |
# Create a non-root user
|
5 |
RUN useradd -m -u 1000 user
|
|
|
12 |
# Copy the requirements file and install dependencies
|
13 |
COPY --chown=user:user ./requirements.txt requirements.txt
|
14 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
15 |
+
RUN apt-get update && apt-get install -y openssl && apt-get clean
|
16 |
+
|
17 |
|
18 |
# Copy the rest of your application code
|
19 |
COPY --chown=user:user . /app
|