Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -0
Dockerfile
CHANGED
|
@@ -23,6 +23,12 @@ RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg -
|
|
| 23 |
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list > /dev/null
|
| 24 |
RUN apt-get update && apt-get install nodejs -y
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
COPY ./requirements.txt /code/requirements.txt
|
| 27 |
|
| 28 |
# Set up a new user named "user" with user ID 1000
|
|
|
|
| 23 |
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list > /dev/null
|
| 24 |
RUN apt-get update && apt-get install nodejs -y
|
| 25 |
|
| 26 |
+
# Upgrade pip and setuptools
|
| 27 |
+
RUN pip install --no-cache-dir --upgrade pip setuptools
|
| 28 |
+
|
| 29 |
+
# Clear the pip cache
|
| 30 |
+
RUN pip cache purge
|
| 31 |
+
|
| 32 |
COPY ./requirements.txt /code/requirements.txt
|
| 33 |
|
| 34 |
# Set up a new user named "user" with user ID 1000
|