Spaces:
Runtime error
Runtime error
Laura Cabayol Garcia
commited on
Commit
·
e4767ef
1
Parent(s):
7401d37
pip installation
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -10,6 +10,7 @@ ENV HOME=/home/user \
|
|
10 |
RUN apt-get update && apt-get install -y \
|
11 |
build-essential \
|
12 |
git \
|
|
|
13 |
&& rm -rf /var/lib/apt/lists/*
|
14 |
|
15 |
# Switch to the "user" user
|
@@ -21,8 +22,12 @@ WORKDIR $HOME/app
|
|
21 |
# Copy pyproject.toml first, setting the owner to the user
|
22 |
COPY --chown=user pyproject.toml .
|
23 |
|
|
|
|
|
|
|
|
|
24 |
# Install the project and its dependencies
|
25 |
-
RUN pip install --no-cache-dir .
|
26 |
|
27 |
# Copy the rest of the application
|
28 |
COPY --chown=user . .
|
|
|
10 |
RUN apt-get update && apt-get install -y \
|
11 |
build-essential \
|
12 |
git \
|
13 |
+
python3-dev \
|
14 |
&& rm -rf /var/lib/apt/lists/*
|
15 |
|
16 |
# Switch to the "user" user
|
|
|
22 |
# Copy pyproject.toml first, setting the owner to the user
|
23 |
COPY --chown=user pyproject.toml .
|
24 |
|
25 |
+
# Upgrade pip and install build tools
|
26 |
+
RUN pip install --no-cache-dir --upgrade pip setuptools wheel
|
27 |
+
|
28 |
+
|
29 |
# Install the project and its dependencies
|
30 |
+
RUN pip install --no-cache-dir -e . -v
|
31 |
|
32 |
# Copy the rest of the application
|
33 |
COPY --chown=user . .
|